dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 67e346fd65d1f628e31d23364466e3e305a8d754
parent 7df7482a4b2e213083eab15c7bf5b00ac36b8d50
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Thu, 21 Jan 2021 21:31:46 +0100

vim: groff filetype

Diffstat:
Avim/after/ftplugin/groff.vim | 4++++
Avim/compiler/groff.pdf | 0
Avim/compiler/groff.vim | 8++++++++
Mvim/filetype.vim | 1+
4 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/vim/after/ftplugin/groff.vim b/vim/after/ftplugin/groff.vim @@ -0,0 +1,4 @@ +compiler groff +let b:nroff_is_groff = 1 +let b:undo_ftplugin = (exists('b:undo_ftplugin') ? b:undo_ftplugin.'|' : '') +let b:undo_ftplugin .= 'unlet b:nroff_is_groff' diff --git a/vim/compiler/groff.pdf b/vim/compiler/groff.pdf Binary files differ. diff --git a/vim/compiler/groff.vim b/vim/compiler/groff.vim @@ -0,0 +1,8 @@ +if exists("current_compiler") + finish +endif +let current_compiler = "groff" +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif +CompilerSet makeprg=groff\ -ms\ -kept\ -T\ pdf\ %\ >\ %<.pdf diff --git a/vim/filetype.vim b/vim/filetype.vim @@ -4,4 +4,5 @@ endif augroup filetypedetect autocmd! BufRead,BufNewFile *.nfo,*.NFO setfiletype nfo autocmd! BufRead,BufNewFile *.puml setfiletype plantuml + autocmd! BufRead,BufNewFile *.ms,*.mom,*.mm setfiletype groff augroup END