zaiste / vimified

Yet another Vim configuration
http://zaiste.github.com/vimified/
686 stars 130 forks source link

How to override autosave in after.vimrc? #92

Closed xiaogwu closed 10 years ago

xiaogwu commented 10 years ago

in vimrc:

" Save when losing focus au FocusLost * :silent! wall

If I don't want this behavior how do I override this autocommand in my after.vimrc?

I've tried:

noautocommand au FocusLost * :silent! wall

and it doesn't seem to disable it.

AdrienGiboire commented 10 years ago

noautocmd FocusLost * should be enough.

xiaogwu commented 10 years ago

E492: Not an editor command: noautocmd FocusLost *

xiaogwu commented 10 years ago

Figured it out.

in after.vimrc:

set ei=FocusLost