On Di, 01 Mai 2018, ds wrote:

> Hi!
> 
> 
> Let's say I have an autocmd defined in my .vimrc, which applies to every 
> possible buffer (autocmd-pattern is set to *). Now, is there any way to 
> override this autocmd only for a particular filetype? I mean, to disable this 
> "general" autocmd and to use another one instead? With the help of 
> after/ftplugin, probably?
> 
> (Wrapping this autocmd in augroup, and then resetting it in 
> after/ftplugin/myfiletype.vim with autocmd! overwrites it globally, of 
> course. Is there a less destructive way? Would be grateful for a hint :)

perhaps you can use the 'eventignore' option or the ':noa' command 
modifier. I am not aware of a buffer-specific solution.


Best,
Christian
-- 
Wie man sein Kind nicht nennen sollte: 
  Anna Log 

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to