-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
19 lines (18 loc) · 802 Bytes
/
Copy pathvimrc
File metadata and controls
19 lines (18 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if has('win32')
let g:c_vim_source_path = fnamemodify(expand('<sfile>'), ':h').'\vimfiles'
set shellslash
let g:c_vim_viminfo = fnamemodify(expand('<sfile>'), ':h').'/vimfiles/.viminfo'
set noshellslash
let g:c_vim_config_path = g:c_vim_source_path . '\config\'
let g:c_vim_plugged_path = g:c_vim_source_path . '\plugged\'
let g:c_vim_plugins_config_dir = 'plugins\'
else
let g:c_vim_source_path = fnamemodify(expand('<sfile>'), ':h').'/.vim'
let g:c_vim_viminfo = g:c_vim_source_path . '/.viminfo'
let g:c_vim_config_path = g:c_vim_source_path . '/config/'
let g:c_vim_plugged_path = g:c_vim_source_path . '/plugged/'
let g:c_vim_plugins_config_dir = 'plugins/'
endif
if filereadable(g:c_vim_config_path . 'main.vim')
execute 'source' g:c_vim_config_path . 'main.vim'
endif