]> Frank Brehm's Git Trees - config/helga/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@helga.brehm-online.com>
Sat, 7 Jan 2017 09:46:12 +0000 (10:46 +0100)
committerroot <root@helga.brehm-online.com>
Sat, 7 Jan 2017 09:46:12 +0000 (10:46 +0100)
vim/vimrc

index 255ab3fb4d7c7c9ebdf43201210194dd3d2a8a91..f1e5c03bd380a32a69fcce2ff670e56cf61201d8 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -167,7 +167,7 @@ augroup gentoo
   autocmd BufReadPost *
         \ if ! exists("g:leave_my_cursor_position_alone") |
         \     if line("'\"") > 0 && line ("'\"") <= line("$") |
-        \         exe "normal g'\"" |
+        \         exe "normal! g'\"" |
         \     endif |
         \ endif
 
@@ -190,6 +190,10 @@ augroup END
 endif " has("autocmd")
 " }}}
 
+" We don't want VIM to load their own built-in defaults, preferring ours here
+" instead:
+let g:skip_defaults_vim = 1
+
 " {{{ vimrc.local
 if filereadable("/etc/vim/vimrc.local")
   source /etc/vim/vimrc.local