16 lines
432 B
VimL
16 lines
432 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
|