Loading

#Memo - Addng "Go" Language Syntax File to VIM

#Memo - Addng "Go" Language Syntax File to VIM

#if you dont have folder
mkdir ~/.vim/
mkdir ~/.vim/syntax/
touch ~/.vimrc

cp $GOROOT/misc/vim/go.vim ~/.vim/syntax/

echo "autocmd BufNewFile,BufRead *.go set filetype=go">>~/.vimrc

cheers,

1 comment:

ေဘာက္တူး said...

Hi Bro, thanks for sharing. I didn't think that go.vim is already inside source folder. But you found it. :-)
Thanks Bro, ko soe.

rgds,

က်ေနာ္ဖတ္ေသာ အျခား ဘေလာ့ / ဆိုဒ္မ်ား