set ai
syntax on
----
Kyle Lemons
Google Platforms - Servers and Storage
Georgia Tech - BS CmpE '10
Sent from my iPhone, so pardon any spelling or punctuation issues!
I found the instructions in the misc package to be the most reliable.
$GOROOT/misc/vim/readme.txt
It should be noted that depending on your distro, you may have to
install vim-enhanced to get the support for this. From memory, on
debian/ubuntu the package is called vim-nox (other variants like
vim-gtk, also etc exist)
Cheers
Dave
that was more of a note-to-self, than a full blown vim setup for Go.
You will at least need this in your ~/.vimrc
filetype plugin on
filetype indent on
filetype on
go/misc/vim/readme.txt explains the next steps very well.
Regards,
Miek Gieben
I added the following lines to .vimrc:set rtp+=/home/quanganht/go/misc/vim
filetype plugin onfiletype indent on
syntax onthe only change is some keywords get underlined. Everything else is not there.2011/9/10 Kyle Lemons <kev...@google.com>
My Vim version has +syntax but no +indent. It doesn't look like a minimal version anyway. And the terminal is xterm.
Vào 00:24 Ngày 11 tháng 9 năm 2011, Kyle Lemons <kev...@google.com> đã viết: