summaryrefslogtreecommitdiffstats
path: root/config/vim/vimrc_windows
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2023-11-24 00:31:06 -0500
committerMitsuo Tokumori <[email protected]>2023-11-24 00:31:06 -0500
commite900c217c1e50a4067384c9bb3fe43dff61986c6 (patch)
treec12b723d503c2aefa2403aecb9e6488af1eea90c /config/vim/vimrc_windows
parentd42c7eeec0ce9af6f9ff5ce501316e6a8c5e43b3 (diff)
downloaddotfiles-e900c217c1e50a4067384c9bb3fe43dff61986c6.tar.gz
dotfiles-e900c217c1e50a4067384c9bb3fe43dff61986c6.tar.bz2
dotfiles-e900c217c1e50a4067384c9bb3fe43dff61986c6.zip
Restructure dirs to mimic XDG base dirs
Non XDG base directories have a leading '_'.
Diffstat (limited to 'config/vim/vimrc_windows')
-rw-r--r--config/vim/vimrc_windows10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/vim/vimrc_windows b/config/vim/vimrc_windows
new file mode 100644
index 0000000..8ce69cd
--- /dev/null
+++ b/config/vim/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