Vim Scoops / Lessons / E492: Not an editor command

E492: Not an editor command

E492 means Vim didn't recognise the command you typed after :. It's usually a typo or a stray capital: commands are case sensitive, so :W fails where :w works.

The keys

KeysWhat they do
:w, not :WSave
:wq, not :WqSave and quit
:q, not :QQuit
: then ↑Bring back the last command to fix it

Vim prints what it couldn't understand after the colon, so E492: Not an editor command: Wq points straight at the capital W.

Holding Shift a moment too long is the classic cause. Some people add command W w to their vimrc so :W saves too.

Related

Want all of Vim, in order? Vim Scoops is a free game that starts at h j k l and builds up to macros.

Play the full game