lilUnicorn
lilUnicorn

Reputation: 15

VIM execute command after write ":w"

Is it possible to always automatically call a command (for example :set invnu) right after I execute :w? If so, how can I do this?

Upvotes: 0

Views: 352

Answers (1)

amow
amow

Reputation: 2223

:au BufWritePost * :set invnu
Better add file extension filter to replace the * above.

Upvotes: 5

Related Questions