diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2011-11-17 11:03:30 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2011-11-17 11:03:30 +1300 |
commit | 3026f711f332c9c05a5df3ca185692c13dd654e4 (patch) | |
tree | ecb09acb765f5a4baa1ee6ea5f96c7275a5d8fa7 | |
parent | Ignore backup/undo folders (diff) | |
download | dotfiles-3026f711f332c9c05a5df3ca185692c13dd654e4.tar.gz dotfiles-3026f711f332c9c05a5df3ca185692c13dd654e4.zip |
Backups, undo files, maps ...
-rw-r--r-- | vim/vimrc | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 + |