refactor: Simplify vimrc
This commit is contained in:
parent
cda9433be6
commit
117dd11f8f
1 changed files with 12 additions and 18 deletions
|
@ -26,24 +26,18 @@
|
|||
" Automatically source config for the correct OS
|
||||
" NOTE: By default the directory of Windows config will be located on
|
||||
" "C:\_config\vim"
|
||||
|
||||
if has('win64') || has('win32') || has('win16')
|
||||
" Windows
|
||||
so C:\_config\vim\vim_win
|
||||
" Universal
|
||||
so C:\_config\vim\vim_uni
|
||||
|
||||
" ----- PlugIns
|
||||
if !exists('g:vscode')
|
||||
source C:\_config\vim\vim_plug
|
||||
endif
|
||||
let $ZVIM_CONFIG_DIR = "C:/_config/vim"
|
||||
let $ZVIM_OS_TYPE = "win"
|
||||
else
|
||||
" *nix (Linux/Mac)
|
||||
so ~/.config/vim/vim_nix
|
||||
" Universal
|
||||
so ~/.config/vim/vim_uni
|
||||
|
||||
" ----- PlugIns
|
||||
if !exists('g:vscode')
|
||||
source ~/.config/vim/vim_plug
|
||||
endif
|
||||
let $ZVIM_CONFIG_DIR = "~/.config/vim"
|
||||
let $ZVIM_OS_TYPE = "nix"
|
||||
endif
|
||||
|
||||
so $ZVIM_CONFIG_DIR/vim_$ZVIM_OS_TYPE
|
||||
so $ZVIM_CONFIG_DIR/vim_uni
|
||||
|
||||
if !exists('g:vscode')
|
||||
source $ZVIM_CONFIG_DIR/vim_plug
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue