forked from DustinVenegas/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_vimrc
20 lines (18 loc) · 786 Bytes
/
dot_vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
" SYNOPSIS
" Configures vim to use a configuration at $HOME/.vim/.vimrc so
" a vim loads the same directories on Windows and Linux.
" DESCRIPTION
" _vimrc can be used on Microsoft Windows to load an underlying configuration
" at $HOME/.vim/. This file should be symlinked to $HOME/_vimrc or $HOME/.vimrc
" when using vim on Microsoft Windows.
" NOTES
" vim uses different configuration paths on Windows and Unix, as of 07/2020 Vim 8.2:
" - On Unix, $HOME/.vim exists in RTP and $HOME/.vim/.vimrc is sourced
" - On Microsoft, $HOME/vimfiles exists in RTP and $HOME/_vimrc is sourced
if has('win32') || has('win64')
set runtimepath^=~\\.vim
set runtimepath+=~\\.vim\\after
source $HOME\\.vim\\.vimrc
else
source $HOME/.vim/.vimrc
endif