stop polluting cwd and conserve undo info

This commit is contained in:
Loic Nageleisen 2011-10-12 20:13:18 +02:00
parent d8cec128b0
commit e211f4c6bb

7
vimrc
View file

@ -109,8 +109,9 @@ autocmd FileType make set noexpandtab "makefiles need tabs
autocmd FileType ruby set softtabstop=2 shiftwidth=2 autocmd FileType ruby set softtabstop=2 shiftwidth=2
autocmd FileType eruby set softtabstop=2 shiftwidth=2 autocmd FileType eruby set softtabstop=2 shiftwidth=2
"swap files "swap/undo files
"set directory=/var/tmp,. set dir=~/.vim/tmp/swap//,/var/tmp//,/tmp//,.
set undodir=~/.vim/tmp/undo//,.
"buffer management "buffer management
set swb=usetab "make :sb <filename> go to tabs too set swb=usetab "make :sb <filename> go to tabs too
@ -167,6 +168,8 @@ map! <M-Right> <C-Right>
"highlight OverLength ctermbg=red ctermfg=white guibg=#592929 "highlight OverLength ctermbg=red ctermfg=white guibg=#592929
"match OverLength /\%81v.\+/ "match OverLength /\%81v.\+/
" conserve undo info
set undofile
" restore last known cursor position " restore last known cursor position
function! ResCur() function! ResCur()