summaryrefslogtreecommitdiffstats
path: root/vimrc_windows
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc_windows')
-rw-r--r--vimrc_windows10
1 files changed, 10 insertions, 0 deletions
diff --git a/vimrc_windows b/vimrc_windows
new file mode 100644
index 0000000..8ce69cd
--- /dev/null
+++ b/vimrc_windows
@@ -0,0 +1,10 @@
+" Git for Windows Vim user initialization file
+" GFW uses ~/.vimrc and ~/.vim/vimrc instead of ~/_vimrc and ~/vimfiles/vimrc
+" See https://github.com/git-for-windows/git/issues/658#issuecomment-184269470
+" This file configures GFW Vim to behave like Windows Vim
+" From: https://kevinlocke.name/bits/2020/07/30/sharing-vimrc-in-git-for-windows/
+let &runtimepath = '~/vimfiles,'
+\ . join(filter(split(&runtimepath, ','), 'v:val !~? "/\\.vim"'), ',')
+\ . ',~/vimfiles/after'
+let &packpath = &runtimepath
+source ~/vimfiles/vimrc