-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
29 lines (24 loc) · 945 Bytes
/
Copy pathinit.vim
File metadata and controls
29 lines (24 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if has('nvim-0.9')
lua require('init')
else
let g:c_vim_source_path = stdpath('config')
fu! ToShellSlash(str)
return substitute(a:str, "\\", "/", "g")
endf
fu! FromShellSlash(str)
return substitute(a:str, "/", "\\", "g")
endf
let g:c_vim_viminfo = g:c_vim_source_path . '/shada/main.shada'
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/'
if has('win32')
let g:c_vim_viminfo = ToShellSlash(g:c_vim_viminfo)
let g:c_vim_config_path = FromShellSlash(g:c_vim_config_path)
let g:c_vim_plugged_path = FromShellSlash(g:c_vim_plugged_path)
let g:c_vim_plugins_config_dir = FromShellSlash(g:c_vim_plugins_config_dir)
endif
if filereadable(g:c_vim_config_path . 'main.vim')
execute 'source' g:c_vim_config_path . 'main.vim'
endif
endif