dotar/vim/settings.vim
2018-06-28 11:22:43 +08:00

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