Saturday, February 13, 2021

How to remove white space at the end of each line while saveing /only for ft=roff/ ?

Hi,

The subject nearly says it all:

When editing nroff or troff files white space at the end of a line
or on a line alone can be poisonous... :)
On other filetypes it is not neccessarily the case and harmless.

So I want to remove those white space only when saveing files in
roff/nroff/troff format.

What I accomplish so far is to remove white space for any kind
of file...but that's not exactly what I want.

How can I limit it to [nt]*roff filles only!

Cheers!
mcc


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210213115705.faxuimrxvnyl2vsw%40solfire.

No comments: