Jump to last position in vim

This commit is contained in:
Simon Bruder 2019-10-14 17:40:52 +00:00
parent 746d5d5a84
commit 8375849316
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -60,6 +60,13 @@ autocmd BufWinEnter * match ExtraWhitespace /\s\+$\| \+\ze\t/
" tab settings
set ai
" jump to the last position
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g`\"" | endif
endif
if has("gui_running")
set guifont=Terminess\ Powerline
endif