Vimrc

From Predictive Chemistry
Revision as of 14:08, 11 April 2014 by David M. Rogers (talk | contribs) (Created page with "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 =…")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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>