From c295d8331ff5193cb97b1e3f6b15836654b010cc Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Wed, 7 Oct 2020 23:41:05 -0400 Subject: auto reload dwmblocks on vim save --- .config/nvim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/nvim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 95c0c14..260a1ff 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -196,7 +196,7 @@ autocmd InsertLeave,TextChanged *.gd,*.ms,*.mom :w! | :execute 'silent AsyncRun autocmd VimLeave *.rmd,*.rnw,*.tex !texclear % map x :w! \| AsyncRun todotable % TODO FIXME CHANGED XXX IDEA HACK NOTE REVIEW NB BUG QUESTION COMBAK TEMP " Have dwmblocks automatically recompile and run when you edit this file in -autocmd BufWritePost ~/compilation/dwmblocks/config.h !cd ~/compilation/dwmblocks/; sudo make install && { killall -q dwmblocks;setsid dwmblocks & } +autocmd BufWritePost ~/Compilation/dwmblocks/config.h !cd ~/Compilation/dwmblocks/; make && sudo make install && { killall -q dwmblocks;setsid dwmblocks & } " Open corresponding .pdf/.html or preview map p :! opout % " Open corresponding .pdf/.html or preview -- cgit v1.2.3