diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-28 02:16:45 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-28 02:16:45 +0100 |
commit | 447a62f05946eaa041a236d16dafbafb7cab4327 (patch) | |
tree | 0a33fd716eacf42ffc173bf2398dc46435098e26 /.config/nvim/after/ftplugin | |
parent | da985ced109293284a91894f607fc36a0a0bf29d (diff) |
nvim: Add word counting in troff
Diffstat (limited to '.config/nvim/after/ftplugin')
-rw-r--r-- | .config/nvim/after/ftplugin/nroff.vim | 3 |
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> |