Compare commits

...

3 Commits

Author SHA1 Message Date
xfnw 54570f8c34 vimrc: add command for disabling numbers 2022-04-12 15:07:47 -04:00
xfnw 0f5d04b936 vimrc: enforce 2 space tabbing for nix files
because filetype refuses to detect it for some reason
2022-04-12 14:17:39 -04:00
xfnw d40aba1d50 git: alias psuh -> push 2022-04-12 12:30:46 -04:00
2 changed files with 12 additions and 7 deletions

View File

@ -12,6 +12,7 @@
smtpuser = xfnw@riseup.net
smtpserverport = 587
[alias]
psuh = push
quickserve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
[commit]
verbose = true

View File

@ -15,18 +15,19 @@ command Tmit :r ~/.vim/templates/mit
command Tuni :r ~/.vim/templates/uni
" run groff+refer on file
:command Groff w|!sh -c 'p="%"; refer -PS -e -p ~/Documents/bib ${p::-4}.mom | groff -mom -Tpdf > ${p::-4}.pdf'
:command Grofft w|!sh -c 'p="%"; refer -PS -e -p ~/Documents/bib ${p::-4}.mom | groff -mom -T ascii | sed -b "s/\x1b[^m]*m//g" > ${p::-4}.txt'
:command Man w|!sh -c 'p="%"; mandoc -T html "$p" | tail -n +17 | cat ~/.vim/templates/man.html - > "$p".html'
:command Tex w|!sh -c 'p="%"; pdflatex "$p"'
:command Bib w|!sh -c 'p="%"; biber "${p::-4}"'
:command Md !p="%"; cmark --unsafe ${p::-3}.md | h2p - ${p::-3}.pdf
command Groff :w|!sh -c 'p="%"; refer -PS -e -p ~/Documents/bib ${p::-4}.mom | groff -mom -Tpdf > ${p::-4}.pdf'
command Grofft :w|!sh -c 'p="%"; refer -PS -e -p ~/Documents/bib ${p::-4}.mom | groff -mom -T ascii | sed -b "s/\x1b[^m]*m//g" > ${p::-4}.txt'
command Man :w|!sh -c 'p="%"; mandoc -T html "$p" | tail -n +17 | cat ~/.vim/templates/man.html - > "$p".html'
command Tex :w|!sh -c 'p="%"; pdflatex "$p"'
command Bib :w|!sh -c 'p="%"; biber "${p::-4}"'
command Md :w|!sh -c 'p="%"; cmark --unsafe ${p::-3}.md | h2p - ${p::-3}.pdf'
" nice line numbers
set number
set relativenumber
command Nonum :set nonumber norelativenumber
" syntax hilighting
syntax on
color pablo
@ -51,4 +52,7 @@ set mouse=a " Enable mouse usage (all modes)
set textwidth=60
set formatoptions-=t
" 2 space tabbing for nix files
autocmd Filetype nix setlocal ts=2 sw=2 expandtab