Tuesday, January 7, 2014

Re: How can I write an autocmd-pattern that _excludes_ a single filetype?

On Tuesday, January 7, 2014 11:04:24 AM UTC-5, Ben Fritz wrote:
> The easier way to exclude a single filetype is to check the value of the 'filetype' option in a globally matching autocmd:
>
> autocmd FileType * if &filetype!=#'netrw' | call DoSomething() | endif

I think you're right. Thanks!

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment