commit 0fa603daea8f27a35b274ccd1944ad4e6d1baf3b
parent dd557c4e1c5bbe8b7661e1c6c61be6ba0263870d
Author: Chris Bracken <chris@bracken.jp>
Date: Tue, 12 Oct 2021 09:45:12 -0700
Remove any predefined autocmds at startup
git-bash on Windows sets an incredibly annoying autocmd in its
/etc/vimrc that restores the cursor to its last position when opening a
file. Unfortunately, /etc/vimrc is under C:\Program Files and protected
by a system policy that prevents editing of any files under that
directory.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/vimrc b/vimrc
@@ -1,6 +1,12 @@
set nocompatible
set encoding=utf-8
+" Remove any autocmds defined by the system for consistency.
+if has("autocmd")
+ autocmd!
+endif
+
+
filetype off
call plug#begin('~/.vim/plugged')
Plug 'rhysd/vim-clang-format'