aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc15
1 files changed, 15 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 2e855ba1..9cc94e0e 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -12,6 +12,10 @@ if has("autocmd")
filetype indent on
endif
+" Backups
+set backup
+set backupdir=$HOME/.vim/backup,/tmp
+
" Colors
if has("syntax")
syntax enable
@@ -27,6 +31,10 @@ if has("cmdline_info")
set showcmd
endif
+" Completion
+set wildmode=longest,list
+set wildmenu
+
" Cursors
map <up> <nop>
map <down> <nop>
@@ -76,6 +84,12 @@ command Wq wq
command W w
command Q q
+" Undo
+if has("persistent_undo")
+ set undofile
+ set undodir=$HOME/.vim/undo,/tmp
+endif
+
" Whitespace
set expandtab
set nojoinspaces
@@ -91,3 +105,4 @@ endif
" Visual
set virtualedit+=block
+