On Wednesday, February 1, 2017 at 10:32:54 AM UTC-5, Ben Fritz wrote:
> A better method would probably be to use a buffer-local autocmd (:help 
> autocmd-buffer-local):
> 
>     au BufWritePost <buffer> !./%
> 
> and then get rid of it:
> 
>     au! BufWritePost <buffer>
> 
> Map these to a keypress or a user-defined command and you're ready to go.

This works. Thank you.

command Autorun   au BufWritePost <buffer> !./%
command Noautorun au! BufWritePost <buffer>


-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to