From ffb02a8823625af8c9cd354cd9e2839e2b27f922 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Sat, 4 Jan 2014 23:44:33 +0100 Subject: vim: add Go's plugins only if Go is installed in the system. --- vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3