preservim / vim-pencil

Rethinking Vim as a tool for writing
Other
1.58k stars 39 forks source link

Enable for multi-line comments in programming code? #52

Open danijar opened 7 years ago

danijar commented 7 years ago

The auto formatting feature is super useful. I wish I had that for multi-line comments in Python. Is there a way to get that?

reedes commented 7 years ago

Pencil is enabling Vim's native autoformat, which you can do independently of pencil with the command set fo+=a . However, I'm not sure how well it works with comments.

I can't see HardPencil mode useable with pure code buffers though, as the settings are largely geared towards prose.

Glad to find that you're finding the plugin useful!