From: martin f. krafft Date: Sat, 22 Aug 2009 11:51:28 +0000 (+0200) Subject: use last-position-jump as example X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/cdaa27f1decaaa2fcc12aea15dbe7fb2ed2c0a64?ds=inline;hp=-c use last-position-jump as example --- cdaa27f1decaaa2fcc12aea15dbe7fb2ed2c0a64 diff --git a/.vimrc b/.vimrc index 1030ac6..27aeeb4 100644 --- a/.vimrc +++ b/.vimrc @@ -1450,7 +1450,7 @@ autocmd BufNewFile,BufRead /etc/logcheck/*.d*/* set tw=0 autocmd BufNewFile,BufRead /home/madduck/debian/pkg/logcheck/*/rulefiles/linux/*.d*/* set tw=0 " jump to last known position in file (:he last-position-jump) -autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"zz" | endif +autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"zz" | endif " disable list mode when inserting stuff, otherwise keep it enabled, it's " useful (see also setting lcs)