On Mon, Sep 03, 2012 at 02:11:59PM -0700, Monnand wrote: > Thank you, Simon. I think they are executed. here is the output > of :verbose set fo? comments?: > > formatoptions=croq > Last set from ~/.vim/bundle/vim-golang/indent/go.vim > comments=sO:* -,mO:* ,exO:*/,s1:/*,mb:*,ex:*/,:// > Last set from ~/.vim/bundle/vim-golang/indent/go.vim
Looks fine.
> BTW, I am using Go programming language as you can tell from
> the output above.
>
> It is true that I put my settings in ~/.vim/bundle/vim-golang/indent/go.vim
Normally ftplugin/go.vim is used for file-related settings.
indent/go.vim is for automatic indentation settings. Settings
like 'formatoptions' should be set in ftplugin/go.vim.
But the location of the setting shouldn't be related to your
problems and is just convention.
> Any other idea?
Is 'paste' set? It prevents automatic formatting.
:set paste?
Regards,
Simon
--
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
pgpgM6nBvzcmL.pgp
Description: PGP signature
