1
0
Fork 0
mirror of synced 2024-07-26 18:11:12 -04:00

Merge pull request #138 from daniilguit/master

Enable jumping to the last position in file on open
This commit is contained in:
Amir Salihefendic 2016-02-20 11:44:19 +00:00
commit 6b251c0ea1

View file

@ -429,3 +429,8 @@ function! <SID>BufcloseCloseIt()
execute("bdelete! ".l:currentBufNum)
endif
endfunction
" Make VIM remember position in file after reopen
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif