"gq" command always linebreak even if setting textwidth=0?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

"gq" command always linebreak even if setting textwidth=0?

Joey Ling
I have set the textwidth as 0, wy "gq" command still add linebreak with some certain textwidth in the paragraph?

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: "gq" command always linebreak even if setting textwidth=0?

Ben Fritz
On Friday, June 16, 2017 at 8:45:14 AM UTC-5, Joey Ling wrote:
> I have set the textwidth as 0, wy "gq" command still add linebreak with some certain textwidth in the paragraph?

:help gq says:

"If the 'textwidth' option is 0, the formatted line length is the screen width (with a maximum width of 79)."

So that's what's happening. Why are you using the "gq" command if you don't want to format lines to a width?

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