commit 9aa69b5c2b6213b17bcc6bcc7bd52c96047029e1
parent 9618844a344761fc1b8911b217178cd512bbad8f
Author: Benjamin Chausse <benjamin@chausse.xyz>
Date:   Thu, 22 Oct 2020 23:35:50 -0400

Rnw knitr compiling in vim

Diffstat:
M.config/mimeapps.list | 1+
M.config/nvim/init.vim | 3++-
M.xinitrc | 1+
3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.config/mimeapps.list b/.config/mimeapps.list @@ -18,3 +18,4 @@ video/x-matroska=video.desktop x-scheme-handler/lbry=lbry.desktop inode/directory=file.desktop x-scheme-handler/kite=kite-copilot.desktop +application/x-osptracker=tracker.desktop diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -144,6 +144,8 @@ set linebreak " Nvim-R let R_rconsole_width = 0 let R_openpdf = 0 +au BufWritePost *.rmd,*.rnw, silent! :call RWeave("nobib", 1, 1) +au VimLeave *.rmd,*.rnw,*.tex !texclear % " Emmet Expansion let g:user_emmet_leader_key=',' " Enable kite autocompletion @@ -194,7 +196,6 @@ let g:tex_flavor = 'latex' map <leader>c :w! \| AsyncRun compiler <c-r>%<CR><CR> autocmd InsertLeave,TextChanged *.gd,*.ms,*.mom :w! | :execute 'silent AsyncRun compiler %' " autocmd InsertLeave *.rmd,*.rnw,*.tex :w! | :execute 'silent AsyncRun compiler %; todotable % TODO FIXME CHANGED XXX IDEA HACK NOTE REVIEW NB BUG QUESTION COMBAK' -autocmd VimLeave *.rmd,*.rnw,*.tex !texclear % map <leader>x :w! \| AsyncRun todotable <c-r>% TODO FIXME CHANGED XXX IDEA HACK NOTE REVIEW NB BUG QUESTION COMBAK TEMP<CR><CR> " Have dwmblocks automatically recompile and run when you edit this file in autocmd BufWritePost ~/Compilation/dwmblocks/config.h !cd ~/Compilation/dwmblocks/; make && sudo make install && { killall -q dwmblocks;setsid dwmblocks & } diff --git a/.xinitrc b/.xinitrc @@ -11,5 +11,6 @@ echo us > $HOME/.cache/layout xrdb -load $HOME/.Xresources dwmblocks & flashfocus -n 30 -o 0.75 -v ERROR & +# exec icewm exec dwm # vim:filetype=sh