diff options
-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 + |