Vimrc
From Predictive Chemistry
Defines macros for tex-ifying a text reference.
.vim/ftplugin/bib.vim <source lang="vim"> noremap <silent> <Leader>a iauthor = {<ESC>ww noremap <silent> <Leader>t ititle = {<ESC>) noremap <silent> <Leader>j ijournal = {<ESC>) noremap <silent> <Leader>p ipages = {<ESC>:.s/-[^-]/--/<CR>/[., ]/<CR>:nohl<CR> noremap <silent> <Leader>y iyear = <ESC>/[^0-9]/<CR>:nohl<CR> noremap <silent> <Leader>v ivolume = <ESC>/[^0-9]/<CR>:nohl<CR> noremap <silent> <Leader>n inumber = <ESC>/[^0-9]/<CR>:nohl<CR> noremap <silent> <Leader>A r aand<ESC>ww noremap <silent> <Leader>; r}a,<CR><ESC> noremap <silent> <Leader>, a,<CR><ESC> </source>