Created
April 12, 2015 03:27
-
-
Save clinyong/27c49e71cb0455b366ab to your computer and use it in GitHub Desktop.
vim auto set current directory as GOPATH
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
# add following lines to your vimrc file | |
if !empty(glob("src")) | |
let $GOPATH=getcwd() | |
let $GOBIN=getcwd() . "/bin" | |
let $PATH=$GOBIN . ":" . $PATH | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment