Download:
child 203:79443480b266
parent 201:14723616fd84
202:efa1b684a3ce
Anton Shestakov <av6@dwimlabs.net>, Sat, 18 Jul 2020 01:29:49 +0800
.vimrc: let's test drive going back to the last edited position

1 файлов изменено, 6 вставок(+), 0 удалений(-) [+]
.vimrc file | annotate | diff | comparison | revisions
--- 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