vim-pencil icon indicating copy to clipboard operation
vim-pencil copied to clipboard

Add additional autoformat blacklisting rule

Open niklaas opened this issue 9 years ago • 2 comments

Sorry in case this is actually obvious: How do I add additional rules for blacklisting? I would like code blocks in ft=mail not to be automatically formatted.

Sorry to bother you with that filetype. :-) I would flattr your work, if I could!

niklaas avatar May 23 '16 04:05 niklaas

Not a problem. Glad to find ways to improve this plugin.

Autoformatting rules can be added/modified by defining your own g:pencil#autoformat_config.

We can add default rules for ft=mail if you can get them working well.

reedes avatar Jun 08 '16 01:06 reedes

@niklaas Did you ever end up with a configuration form ft=mail that you liked? Would you be willing to share what you have here so we can consider if anything should be added to Pencil defaults for better out of the box performance?

alerque avatar Nov 16 '19 11:11 alerque