summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-28 02:16:45 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-10-28 02:16:45 +0100
commit447a62f05946eaa041a236d16dafbafb7cab4327 (patch)
tree0a33fd716eacf42ffc173bf2398dc46435098e26 /.config/nvim
parentda985ced109293284a91894f607fc36a0a0bf29d (diff)
nvim: Add word counting in troff
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/after/ftplugin/nroff.vim3
1 files changed, 3 insertions, 0 deletions
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 <LocalLeader>c :w !wc -w<CR>
+xnoremap <LocalLeader>c :'<,'>w !deroff \| wc -w<CR>