Monday, June 3, 2013

Is there a setting for making gq splitting strings correctly in C++?

If I select a region with some strings and reformat the region with gq some of the strings there will be split in different lines...

This causes compilation error.
Right now what happens is

"This is a quite long string"
==>
"This is a quite
long string"

The final result should be
"this is a quite\
long string"

or
"this is a quite"
" long string"

Any settings that make this behave the way I describe?

Thanks!

--
--
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/groups/opt_out.

No comments: