5 lines
163 B
Text
5 lines
163 B
Text
To run "command" on the current file on each save, use:
|
|
|
|
:autocmd BufWritePost * !command <afile>
|
|
|
|
<afile> is a built-in variable for the current active file.
|