Add golang Syntax highlighting for Vim in mac terminal
Let’s go in vim terminal
To the point post.. Here is what you have to do
For those who use Vim in terminal of Mac.
ls ~/.vim/syntax curl https://raw.githubusercontent.com/fatih/vim-go/master/syntax/go.vim >> go.vim
Edit .vimrc and add this line
au BufRead,BufNewFile *.go set filetype=go