respond-agent/.vimrc
lickthecheese 9df77bc7c4 irssi
2020-04-01 20:51:16 -04:00

27 lines
772 B
VimL

" some custom commands
"
" insert mom templates
command Tmomc :r ~/Documents/templates/chapter.mom
command Tmomg :r ~/Documents/templates/general.mom
command Tmomr :r ~/Documents/templates/recipe.mom
command Tmome :r ~/Documents/templates/english.mom
command Tmd :r ~/Documents/templates/md.html
" run groff+refer on file
:command Groff !p="%"; refer -PS -e -p ~/Documents/bib ${p::-4}.mom | groff -mom -Tpdf > ${p::-4}.pdf
:command Grofft !p="%"; refer -PS -e -p ~/Documents/bib ${p::-4}.mom | groff -mom -T ascii > ${p::-4}.txt
:command Man !p="%"; groff -man -T ascii ${p::-4}.man > ${p::-4}.txt
:command Md !p="%"; cmark --unsafe ${p::-3}.md | h2p - ${p::-3}.pdf
" nice line numbers
set number
set relativenumber
" syntax hilighting
syntax on
color pablo