Created
March 8, 2013 08:39
-
-
Save physacco/5115035 to your computer and use it in GitHub Desktop.
Install vim plugin for the go programming language. Tested on Fedora.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
GOROOT="/home/i/src/go" | |
VIMFILES="/usr/share/vim/vimfiles" | |
mkdir -p $VIMFILES/autoload/go | |
cp -i $GOROOT/misc/vim/ftdetect/gofiletype.vim $VIMFILES/ftdetect/ | |
cp -i $GOROOT/misc/vim/syntax/go.vim $VIMFILES/syntax/ | |
cp -i $GOROOT/misc/vim/syntax/godoc.vim $VIMFILES/syntax/ | |
cp -i $GOROOT/misc/vim/autoload/go/complete.vim $VIMFILES/autoload/go/ | |
# echo "filetype plugin indent on" >> /etc/vimrc | |
# echo "syntax on" >> /etc/vimrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment