diff --git a/.bashrc b/.bashrc index a66cac1..83a693f 100644 --- a/.bashrc +++ b/.bashrc @@ -1,7 +1,7 @@ #-------------------------------------------------------------------------------- # The best editor #-------------------------------------------------------------------------------- -export EDITOR=vi +export EDITOR=vim #-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- @@ -46,6 +46,12 @@ alias githistory='git log --oneline --abbrev-commit --all --graph --decorate' alias gitx='open -a GitX .' #-------------------------------------------------------------------------------- +#-------------------------------------------------------------------------------- +# Set up GOPATH for Go development +#-------------------------------------------------------------------------------- +export GOPATH=${HOME}/src/go +#-------------------------------------------------------------------------------- + #-------------------------------------------------------------------------------- # Add bash completion for ssh: it tries to complete the host to which you # want to connect from the list of the ones contained in ~/.ssh/known_hosts diff --git a/.vimrc b/.vimrc index 06fb6c6..45c19cf 100644 --- a/.vimrc +++ b/.vimrc @@ -50,5 +50,6 @@ map :NERDTreeToggle " Autocomplete let g:neocomplcache_enable_at_startup = 1 -" Use Markdown for .md files +" Set filetypes au BufRead,BufNewFile *.md set filetype=markdown +au BufRead,BufNewFile *.go set filetype=go