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)