sponsor Vim development Vim logo Vim Book Ad

vim-groff-viewer : Display Groff files in a document viewer

 script karma  Rating 5/2, Downloaded by 490  Comments, bugs, improvements  Vim wiki

created by
script type
A Vim filetype plugin for displaying Groff files in a document viewer as determined by the system default or chosen by the user. The document viewer used should auto-reload and preferably support the postscript file format - examples are Zathura, Evince, Okular or Xreader.

Usage, configuration, etc: https://preciouschicken.com/software/vim-groff-viewer/

Video demonstration: https://www.youtube.com/watch?v=-NOvAKriByM
install details
Install using your preferred plugin manager, for instance with vim-plug:

  Plug 'PreciousChicken/vim-groff-viewer'

or dein.vim:

  call dein#add('PreciousChicken/vim-groff-viewer')

Alternatively manually install using the Linux terminal:

  mkdir -p ~/.vim/pack/preciouschicken/start/groff-viewer
  git clone https://github.com/PreciousChicken/vim-groff-viewer.git ~/.vim/pack/preciouschicken/start/groff-viewer

Ensure that you have the line 'filetype plugin on' added to your .vimrc if not already.

Helptags for the plugin can be loaded by using the command ':helptags ALL' when a groff file is open. Help will then be accessible within Vim via ':help groff-viewer'.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-groff-viewer-2.1.0.tar.gz v2.1.0 2024-06-02 7.0 Gene Now incorporates grog to determine macro package (e.g. me, ms, etc) and preprocessor (e.g. -j, -p, -t).
vim-groff-viewer-2.0.2.tar.gz v2.0.2 2023-08-16 7.0 Gene Fixes breaking change in Neovim where plugin disabled by default.
vim-groff-viewer-2.0.1.tar.gz v2.0.1 2023-06-19 7.0 Gene Disabled wordcount functionality for mom macro only.
vim-groff-viewer-2.0.0.tar.gz v2.0.0 2022-11-08 7.0 Gene Added word / character count functionality, changed all mapping from <leader> to <localleader>.
vim-groff-viewer-1.0.4.tar.gz v1.0.4 2022-09-10 7.0 Gene Fixed error with printing of non me macro documents, fixed error message when non-groff buffer open at same time.
vim-groff-viewer-1.0.2.tar.gz v1.0.2 2022-09-09 7.0 Gene Fixed error where whitespace in path would create empty file.
vim-groff-viewer-1.0.1.tar.gz v1.0.1 2022-08-07 7.0 Gene Fixed error where mupdf was unable to open a pdf created with `-T pdf` flag.
vim-groff-viewer.tar.gz v1.0.0 2022-05-19 7.0 Gene Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github