aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2014-01-04 23:44:33 +0100
committerMiquel Sabaté <mikisabate@gmail.com>2014-01-04 23:44:33 +0100
commitffb02a8823625af8c9cd354cd9e2839e2b27f922 (patch)
treec16855af86de6559013ced0ea533d664c29e1e3a
parent63e7a3b3f3939b1cb26671e1ec9f49731d295282 (diff)
downloaddotfiles-ffb02a8823625af8c9cd354cd9e2839e2b27f922.tar.gz
dotfiles-ffb02a8823625af8c9cd354cd9e2839e2b27f922.zip
vim: add Go's plugins only if Go is installed in the system.
-rw-r--r--vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 8a5b910..340beed 100644
--- a/vimrc
+++ b/vimrc
@@ -99,7 +99,9 @@ filetype off
filetype indent plugin off
" Using the Go plugins from the official repo.
-set runtimepath+=$GOROOT/misc/vim
+if isdirectory($GOROOT . "/misc/vim")
+ set runtimepath+=$GOROOT/misc/vim
+endif
" All the plugins are listed in my bundles file, that will be installed
" inside the ~/.vim directory.