dotfiles/.vimrc

28 lines
772 B
VimL
Raw Normal View History

2019-07-20 17:49:28 +00:00
" some custom commands
"
" insert mom templates
command Tmomc :r ~/Documents/templates/chapter.mom
command Tmomg :r ~/Documents/templates/general.mom
2019-07-29 18:13:23 +00:00
command Tmomr :r ~/Documents/templates/recipe.mom
2019-10-21 17:22:55 +00:00
command Tmome :r ~/Documents/templates/english.mom
2020-04-02 00:51:16 +00:00
command Tmd :r ~/Documents/templates/md.html
2019-07-20 17:49:28 +00:00
2019-07-20 18:04:12 +00:00
" 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
2019-10-27 17:36:26 +00:00
2020-04-02 00:51:16 +00:00
:command Md !p="%"; cmark --unsafe ${p::-3}.md | h2p - ${p::-3}.pdf
2020-03-29 22:26:35 +00:00
" nice line numbers
set number
set relativenumber
" syntax hilighting
syntax on
color pablo