diff --git a/vim/vimrc b/vim/vimrc index 42136bb..2dd788a 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -283,3 +283,7 @@ let g:ycm_add_preview_to_completeopt = 0 let g:instant_markdown_autostart = 0 let g:terraform_align = 1 + +if has("autocmd") + au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif +endif