Reply to message «Re: Unable to clear abbreviations», sent 22:33:16 07 June 2011, Tuesday by Uri Moszkowicz:
> I actually want to disable the feature altogether, not just for groovy
> files.
I guess you need
:au FileType * :abclear <buffer>
as
1. filetype may be defined after buffer was entered;
2. BufEnter event is launched far more times (if you edit multiple files in one
vim instance) then filetype is changed.
Original message:
> I actually want to disable the feature altogether, not just for groovy
> files.
>
> On Tue, Jun 7, 2011 at 2:28 PM, Gary Johnson <[email protected]> wrote:
> > On 2011-06-07, Uri Moszkowicz wrote:
> > > On Tue, Jun 7, 2011 at 2:07 PM, ZyX <[email protected]> wrote:
> > > Reply to message Re: Unable to clear abbreviations ,
> > > sent 21:59:29 07 June 2011, Tuesday
> > >
> > > by Uri Moszkowicz:
> > > > :abc a.groovy => "E474: Invalid argument"
> > >
> > > WTF is a.groovy doing after abclear? You are supposed to type
> > >
> > > :abc <buffer>
> > >
> > > where <buffer> is <buffer> typed *literally*. It is not a
> >
> > placeholder for
> >
> > > buffer name.
> > >
> > > Sorry I didn't realize. I thought it was a placeholder for the buffer
> >
> > name and
> >
> > > the documentation isn't clear enough to refer to. Anyway, I've tried
> > > that command and it works! Am I going to have to run this after
> > > opening every
> >
> > buffer
> >
> > > though?
> >
> > No. Just put that command in a file named
> >
> > ~/.vim/after/ftplugin/groovy.vim
> >
> > Regards,
> > Gary
> >
> > --
> > 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
signature.asc
Description: This is a digitally signed message part.
