From 3026f711f332c9c05a5df3ca185692c13dd654e4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 17 Nov 2011 11:03:30 +1300 Subject: Backups, undo files, maps ... --- vim/vimrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'vim') 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 map @@ -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 + -- cgit v1.2.3