nvim/notes/command-on-save.txt

6 lines
163 B
Text
Raw Normal View History

2017-01-25 15:37:36 +00:00
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.