Skip to content

Instantly share code, notes, and snippets.

@clinyong
Created April 12, 2015 03:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save clinyong/27c49e71cb0455b366ab to your computer and use it in GitHub Desktop.
Save clinyong/27c49e71cb0455b366ab to your computer and use it in GitHub Desktop.
vim auto set current directory as GOPATH
# 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