Monday, June 8, 2015

Paste as a comment, but without formatting

When I paste some code inside a comment, I would like it to be
automatically commented out, but not formatted in any way. I cannot
find a way to do it (in one step). With `set nopaste` the code is
commented out but also formatted. With `set paste` the code is left as
is, but also not commented out. Toggling autoindent does not seem to
help either. I have formatoptions=tcqrnjo. Any suggestion?

Nicola


--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment