diff --git a/home/.vimrc b/home/.vimrc index ef9f4b4..be8e4e4 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -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