Saluton Gary :)

On Thu 26 Mar 2009 22:19 +0100, Gary Johnson <[email protected]> dixit:
>> autocmd BufRead,BufNewFile,FileReadPost * set comments=<put here your
>> settings>
>
> If you decide to use the above autocommand in your .vimrc, be sure to
> put it _after_ your "filetype plugin on" command so that your
> autocommand is executed last.

Yes, I forgot to tell O:)

> Also, I think it would be better to use the FileType event rather
> than BufRead and BufNewFile, and I don't see the reason for using
> the FileReadPost event at all.  The result would be
>
>    autocmd FileType * set comments=<put here your settings>

>From the autocmd help I deduced that the "FileType" event is launched at
the time "set filetype" is called, but *before* the appropriate filetype
script is called, so I didn't suggest that event because I thought that
any "set comments" will be overriden when the ftplugin/whatever.vim
script is called... From the docs I still think that is the case, but
I'll take your word that it works.

-- 
Raúl "DervishD" Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to