some groff templates for vim stuff

This commit is contained in:
Xfnw knuu 2021-01-13 14:21:18 -05:00
parent 60ad87699f
commit e19381c049
8 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,13 @@
.PRINTSTYLE TYPESET
.DOCTYPE CHAPTER
.FOOTNOTE_MARKER_STYLE NUMBER
.TITLE ""
.AUTHOR "Owen Bell"
.ATTRIBUTE_STRING ""
.COVER TITLE AUTHOR
.CHAPTER 1
.START
.PP
.COLLATE

View file

@ -0,0 +1,18 @@
.PRINTSTYLE TYPESET
.DOCTYPE DEFAULT
.FAMILY T
.FOOTNOTE_MARKER_STYLE NUMBER
.LS 1.5m
.PARA_INDENT 2m
.INDENT_FIRST_PARAS
.START
.BR
//
.BR
.BR
.HEADING 1 ""
.PP

View file

@ -0,0 +1,9 @@
.PRINTSTYLE TYPESET
.DOCTYPE DEFAULT
.FOOTNOTE_MARKER_STYLE NUMBER
.TITLE ""
.AUTHOR "Owen Bell"
.ATTRIBUTE_STRING ""
.START
.PP

25
.vim/templates/man.1 Normal file
View file

@ -0,0 +1,25 @@
.Dd
.Dt
.Os
.
.Sh NAME
.Nm
.Nd
.
.Sh SYNOPSIS
.Nm
.
.Sh DESCRIPTION
.
.Sh OPTIONS
.Bl -tag -width Ds
.El
.
.Sh BUGS
please report any bugs found to
.Lk
.
.Sh AUTHORS
.An xfnw Aq Mt xfnw@riseup.net

View file

@ -1,4 +1,7 @@
<!DOCTYPE html>
<!-- if you want manpages styled like this one,
check out https://causal.agency
-->
<style>
:root {
--ansi0: #161510;

2
.vim/templates/md.html Normal file
View file

@ -0,0 +1,2 @@
<link rel="stylesheet" href="///home/ltc/Documents/assets/mvp.css">

19
.vim/templates/recipe.mom Normal file
View file

@ -0,0 +1,19 @@
.PRINTSTYLE TYPESET
.DOCTYPE DEFAULT
.FAMILY H
.FOOTNOTE_MARKER_STYLE NUMBER
.TITLE ""
.ATTRIBUTE_STRING ""
.START
.PP
.HEADING 1 "Ingredients"
.LIST BULLET
.ITEM
.LIST OFF
.HEADING 1 "Directions"
.LIST DIGIT
.ITEM
.LIST OFF

View file

@ -8,6 +8,7 @@ command Tmomg :r ~/.vim/templates/general.mom
command Tmomr :r ~/.vim/templates/recipe.mom
command Tmome :r ~/.vim/templates/english.mom
command Tmd :r ~/.vim/templates/md.html
command Tman :r ~/.vim/templates/man.1
command Tmh :r ~/.vim/templates/man.html
" run groff+refer on file