diff options
author | tdro <tdro@users.noreply.github.com> | 2020-11-23 01:39:07 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-11-23 01:39:07 -0500 |
commit | f52e3543ace4dd512750006631940f77885e1bc4 (patch) | |
tree | 0067b068fd7b2a4cbc0d592d7f3970f1c0e7f2d9 /.vimrc | |
parent | 6582e86054ad5d8b11d96d377aa7a6b3cf0eecf2 (diff) | |
download | dotfiles-f52e3543ace4dd512750006631940f77885e1bc4.tar.gz dotfiles-f52e3543ace4dd512750006631940f77885e1bc4.tar.bz2 dotfiles-f52e3543ace4dd512750006631940f77885e1bc4.zip |
.vimrc: pretty format awk code
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -320,7 +320,7 @@ augroup AutoCommands autocmd FileType bash,sh autocmd! BufWritePost <buffer> :call ShellCheck() autocmd FileType nix autocmd! BufWritePost <buffer> silent call NixCheck() autocmd FileType elixir autocmd! BufWritePost <buffer> :call ElixirFormat() - autocmd FileType awk autocmd! BufWritePost <buffer> silent !notify-send "$(awk -g -f % 2>&1 && echo 'awk OK:' %)" + autocmd FileType awk autocmd! BufWritePost <buffer> silent !notify-send "$(awk -g -f % 2>&1 && awk -o- -f % | sponge % && echo 'awk OK:' %)" autocmd FileType rust autocmd! BufWritePost <buffer> silent !notify-send "$(rustfmt % 2>&1 && echo 'rustfmt OK:' %)" " File type function under cursor lookups. |