My vim configuration
git clone https://github.com/m-col/vim-misc
Files | Refs | Readme

Commit ee9286eb1145b6cadccd75f31aad86bc3e34a3d4
Parent: 49f2cfeb869d280b6f633cf435c30089ae2c4ad9
Author: mcol <mcol@posteo.net>
Date: 2020-02-02 09:41:29 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2020-02-02 09:41:29 +0000

make hostname check actually work

vimrc Modified

@@ -20,7 +20,7 @@
 
 Plugin 'VundleVim/Vundle.vim'		    " required
 
-if stridx(hostname(), "book")
+if stridx(hostname(), "book") != -1
     Plugin 'vimwiki/vimwiki'		    " vimwiki
     "Plugin 'gu-fan/riv.vim'
     Plugin 'm-col/vimlab'		    " vimlab
@@ -102,7 +102,7 @@
 	    \ | endif
 
 " machine specific settings
-if stridx(hostname(), "book")
+if stridx(hostname(), "book") != -1
 
     packadd! matchit		" needed for matlab indentation functionality
     "let g:mlint_path_to_mlint = expand("$HOME") . "/applications/MATLAB/R2018b/bin/glnxa64/mlint"