aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2011-11-17 11:03:30 +1300
committerTom Ryder <tom@sanctum.geek.nz>2011-11-17 11:03:30 +1300
commit3026f711f332c9c05a5df3ca185692c13dd654e4 (patch)
treeecb09acb765f5a4baa1ee6ea5f96c7275a5d8fa7
parentIgnore backup/undo folders (diff)
downloaddotfiles-3026f711f332c9c05a5df3ca185692c13dd654e4.tar.gz
dotfiles-3026f711f332c9c05a5df3ca185692c13dd654e4.zip
Backups, undo files, maps ...
-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
+