2014-07-17 06:51:45 +08:00
|
|
|
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
|
2013-10-22 05:10:40 +08:00
|
|
|
|
|
|
|
exe 'source' fpath
|
|
|
|
endfor
|