Jump to last position in vim
This commit is contained in:
parent
746d5d5a84
commit
8375849316
|
@ -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
|
||||
|
|
Reference in a new issue