the new .vimrc.local system.

This commit is contained in:
2014-11-12 19:54:44 +04:00
parent bf8dd5f87a
commit 28848c342f
3 changed files with 10 additions and 4 deletions

View File

@@ -1,12 +1,11 @@
let s:vimrc=expand('<sfile>')
let s:vimrc=expand('<sfile>:p:r')
let s:host=hostname()
if filereadable(s:vimrc.'.'.s:host)
execute 'source '.s:vimrc.'.'.s:host
execute ':source '.s:vimrc.'.'.s:host
elseif filereadable(s:vimrc.'.win64') && has('win64')
source s:vimrc.'.win64'
elseif filereadable(s:vimrc.'.linux') && has('unix')
source s:vimrc.'.linux'
endif