28 lines
588 B
VimL
28 lines
588 B
VimL
let vimsettings = '~/.vim/settings'
|
|
let uname = system("uname -s")
|
|
|
|
for fpath in split(globpath(vimsettings, '*.vim'), '\n')
|
|
|
|
if (fpath == expand(vimsettings) . "/yadr-keymap-mac.vim") && uname[:4] ==? "linux"
|
|
continue " skip mac mappings for linux
|
|
endif
|
|
|
|
if (fpath == expand(vimsettings) . "/yadr-keymap-linux.vim") && uname[:4] !=? "linux"
|
|
continue " skip linux mappings for mac
|
|
endif
|
|
|
|
exe 'source' fpath
|
|
endfor
|
|
|
|
|
|
|
|
if has("unix")
|
|
let s:uname = system("uname -s")
|
|
if s:uname == "Darwin"
|
|
set shell=/usr/local/bin/zsh
|
|
else
|
|
set shell=/usr/bin/zsh
|
|
endif
|
|
endif
|
|
|