summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc34
1 files changed, 34 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..5d82303
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,34 @@
+"General
+syntax on
+set number " Show absolute line numbers
+set relativenumber " Show relative line numbers
+"together show they show hybrid line numbers
+set showbreak=+++ " Wrap-broken line prefix
+set textwidth=100 " Line wrap (number of cols)
+
+set showmatch " Highlight matching brace
+set hlsearch " Highlight all search results
+set smartcase " Enable smart-case search
+set gdefault " Always substitute all matches in a line
+set ignorecase " Always case-insensitive
+set incsearch " Searches for strings incrementally
+
+set autoindent " Auto-indent new lines
+set cindent " Use 'C' style program indenting
+set expandtab " Use spaces instead of tabs
+set smartindent " Enable smart-indent
+set smarttab " Enable smart-tabs
+set softtabstop=4 " Number of spaces per Tab
+set shiftwidth=4 " Number of auto-indent spaces
+set scrolloff=7
+
+"" Advanced
+set ruler " Show row and column ruler information
+
+set undolevels=1000 " Number of undo levels
+
+
+if has('persistent_undo') "check if your vim version supports
+ set undodir=$HOME/.vim/undo "directory where the undo files will be stored
+ set undofile "turn on the feature
+endif