Wednesday, September 19, 2012

Re: FileTypePre autocmd

On Wednesday, September 19, 2012 2:04:34 AM UTC-5, Fermat 618 wrote:
> I tried to do some clean-up work when using
>
>
>
> :setfiletype another_file_type
>
>
>
> command, but didn't manage to find a FileTypePre auto command.
>
>
>
> Is there anyway to do clean-up work before a set it to another filetype?

:setfiletype will not not change the filetype if it's already set, and :set filetype=somefiletype will automatically execute the b:undo_ftplugin variable, IIUC.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment