From 35cd3f21f19e95d20ebc294ae3f5037fa3333910 Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 22 Nov 2020 22:28:59 -0500 Subject: .vimrc: Add simple awk REPL and linter --- .vimrc | 2 ++ 1 file changed, 2 insertions(+) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index fd0a3af..b11099b 100644 --- a/.vimrc +++ b/.vimrc @@ -320,6 +320,7 @@ augroup AutoCommands autocmd FileType bash,sh autocmd! BufWritePost :call ShellCheck() autocmd FileType nix autocmd! BufWritePost silent call NixCheck() autocmd FileType elixir autocmd! BufWritePost :call ElixirFormat() + autocmd FileType awk autocmd! BufWritePost silent !notify-send "$(awk -g -f % 2>&1 && echo 'awk OK:' %)" autocmd FileType rust autocmd! BufWritePost silent !notify-send "$(rustfmt % 2>&1 && echo 'rustfmt OK:' %)" " File type function under cursor lookups. @@ -338,6 +339,7 @@ augroup AutoCommands autocmd FileType python noremap cc :REPL python autocmd FileType perl noremap cc :REPL perl -de0 autocmd FileType javascript noremap cc :REPL node + autocmd FileType awk noremap cc :term ++rows=10 ++close awk -f % " General auto commands. autocmd BufWritePost *.tex :term ++close ++rows=10 latex-compile % -- cgit v1.2.3