separate mac and linux vim keymaping

This commit is contained in:
Alex Frost
2014-07-16 23:51:45 +01:00
parent 5e4ff731de
commit 245ca3a2b4
4 changed files with 174 additions and 73 deletions

View File

@@ -1,4 +1,15 @@
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
for fpath in split(globpath('~/.vim/settings', '*.vim'), '\n')
exe 'source' fpath
endfor