From a18149b0c85f90d70fadb65c325c2844f8eff426 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 16 Nov 2018 12:25:25 -0500 Subject: [PATCH] xrdb update automatic and bib fix --- .vimrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index a4a4993..5ba108a 100644 --- a/.vimrc +++ b/.vimrc @@ -111,6 +111,9 @@ call plug#end() " When shortcut files are updated, renew bash and ranger configs with new material: autocmd BufWritePost ~/.key_directories,~/.key_files !bash ~/.scripts/tools/shortcuts +" Run xrdb whenever Xdefaults or Xresources are updated. + autocmd BufWritePost ~/.Xresources,~/.Xdefaults !xrdb % + " Runs a script that cleans out tex build files whenever I close out of a .tex file. autocmd VimLeave *.tex !texclear % @@ -220,9 +223,9 @@ call plug#end() """.bib - autocmd FileType bib inoremap ,a @article{author="<++>",year="<++>",title="<++>",journal="<++>",volume="<++>",pages="<++>",}<++>8kA,i - autocmd FileType bib inoremap ,b @book{author="<++>",year="<++>",title="<++>",publisher="<++>",}<++>6kA,i - autocmd FileType bib inoremap ,c @incollection{author="<++>",title="<++>",booktitle="<++>",editor="<++>",year="<++>",publisher="<++>",}<++>8kA,i + autocmd FileType bib inoremap ,a @article{author={<++>},year={<++>},title={<++>},journal={<++>},volume={<++>},pages={<++>},}<++>8kA,i + autocmd FileType bib inoremap ,b @book{author={<++>},year={<++>},title={<++>},publisher={<++>},}<++>6kA,i + autocmd FileType bib inoremap ,c @incollection{author={<++>},title={<++>},booktitle={<++>},editor={<++>},year={<++>},publisher={<++>},}<++>8kA,i "MARKDOWN autocmd Filetype markdown,rmd map w yiWi[Ea](pa)