# HG changeset patch # User Anton Shestakov <av6@dwimlabs.net> # Date 1595006989 -28800 # Node ID efa1b684a3ceb1a48a5f87c674f9a75f00a79c8f # Parent 14723616fd8476e2be3c6d245e3112da8113bc55 .vimrc: let's test drive going back to the last edited position diff -r 14723616fd84 -r efa1b684a3ce .vimrc --- a/.vimrc Sat Jul 18 01:26:07 2020 +0800 +++ b/.vimrc Sat Jul 18 01:29:49 2020 +0800 @@ -123,6 +123,12 @@ let g:ansible_attribute_highlight="ab" let g:ansible_extra_keywords_highlight=1 +" go back to the last edited position +au BufReadPost * + \ if line("'\"") >= 1 && line("'\"") <= line("$") + \ | execute "normal! g`\"" + \ | endif + " molokai color scheme let g:molokai_original=1 colorscheme molokai