Added "remember last edited line" stuff

This commit is contained in:
Emmanuel BENOîT 2015-03-07 17:36:32 +01:00
parent dd2664e32b
commit 3a2e8c8502

13
cfg/80-restore-line.vim Normal file
View 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