mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 05:24:39 +01:00
stop polluting cwd and conserve undo info
This commit is contained in:
parent
d8cec128b0
commit
e211f4c6bb
1 changed files with 5 additions and 2 deletions
7
vimrc
7
vimrc
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue