From 447a62f05946eaa041a236d16dafbafb7cab4327 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 28 Oct 2024 02:16:45 +0100 Subject: nvim: Add word counting in troff --- .config/nvim/after/ftplugin/nroff.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to '.config/nvim') diff --git a/.config/nvim/after/ftplugin/nroff.vim b/.config/nvim/after/ftplugin/nroff.vim index 63c4b9b..62eca08 100644 --- a/.config/nvim/after/ftplugin/nroff.vim +++ b/.config/nvim/after/ftplugin/nroff.vim @@ -1 +1,4 @@ setlocal textwidth=73 + +nnoremap c :w !wc -w +xnoremap c :'<,'>w !deroff \| wc -w -- cgit v1.2.3