SEARCH
TOOLBOX
LANGUAGES
modified on 11 April 2014 at 13:08 ••• 3,043 views

Vimrc

From Predictive Chemistry

Jump to: navigation, search

Defines macros for tex-ifying a text reference.

.vim/ftplugin/bib.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>