aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.