diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-22 23:35:50 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-22 23:35:50 -0400 |
commit | 9aa69b5c2b6213b17bcc6bcc7bd52c96047029e1 (patch) | |
tree | 4f14f1ed52825b82a512ba4707bad4a23a58567c | |
parent | 9618844a344761fc1b8911b217178cd512bbad8f (diff) |
Rnw knitr compiling in vim
-rw-r--r-- | .config/mimeapps.list | 1 | ||||
-rwxr-xr-x | .config/nvim/init.vim | 3 | ||||
-rw-r--r-- | .xinitrc | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/.config/mimeapps.list b/.config/mimeapps.list index dc9be7a..cc0c0dd 100644 --- 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 index fee91e3..d4151ab 100755 --- 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 & } @@ -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 |