lilUnicorn lilUnicorn - 1 year ago 71
Linux Question

VIM execute command after write ":w"

Is it possible to always automatically call a command (for example

:set invnu
) right after I execute
? If so, how can I do this?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download