aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <bobov_a@sibsac.ru>2011-10-13 13:48:20 +0600
committerAnton Bobov <bobov_a@sibsac.ru>2011-10-13 13:48:20 +0600
commit99de19c6ca2fc17a7e69f9f78eca16527dd24e48 (patch)
treea9ede58801866ce2899a3b4f3cc4eb60ea77af30
parentf9271617d79350aa765f28dec3250f0877e7d1c1 (diff)
f
-rwxr-xr-xfiles/.vimrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/.vimrc b/files/.vimrc
index e8745ee..2687f52 100755
--- a/files/.vimrc
+++ b/files/.vimrc
@@ -188,7 +188,7 @@ map gf :e <cfile><CR>
map YY "+yy
-let s:local_vimrc=$home/.vimrc-hostname()
-"if s:hostname == '10093352-SIBSAC'
- "source $HOME/.vimrc_10093352-SIBSAC
-"endif
+let s:local_vimrc=$HOME . "/.vimrc-" . hostname()
+if filereadable(s:local_vimrc)
+ silent! execute ':source ' . s:local_vimrc
+endif