Added "remember last edited line" stuff
This commit is contained in:
parent
dd2664e32b
commit
3a2e8c8502
1 changed files with 13 additions and 0 deletions
13
cfg/80-restore-line.vim
Normal file
13
cfg/80-restore-line.vim
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
" Return to last edited line when a file is re-opened
|
||||||
|
augroup RememberLine
|
||||||
|
autocmd!
|
||||||
|
autocmd BufReadPost *
|
||||||
|
\ if line( "'\"" ) > 0 && line( "'\"" ) <= line( "$" )
|
||||||
|
\ && &filetype != "svn"
|
||||||
|
\ && &filetype != "gitcommit"
|
||||||
|
\ && &filetype != "gitrebase"
|
||||||
|
\ && &filetype != "hgcommit"
|
||||||
|
\ && &filetype != "cvs" |
|
||||||
|
\ execute 'normal! g`"zvzz' |
|
||||||
|
\ endif
|
||||||
|
augroup END
|
Loading…
Reference in a new issue