Pankaj Garg wrote:
> On Apr 14, 10:29 pm, Matt Wozniski <[email protected]> wrote: > > On Wed, Apr 15, 2009 at 1:18 AM, Dennis Benzinger > > > > <[email protected]> wrote: > > > > > Hi! > > > > > Am 14.04.2009 23:18, _Lone schrieb: > > >> To set 'guidecolumn' you can do > > >> :set guidecolumn=N > > >> where N is the column. If N is 0 then guidecolumn is turned off. It is > > >> highly unlikely that a user would want the guidecolumn at column 0 but > > >> the syntax seems odd so let me know if you think there can be a better > > >> way to do this. > > >> [...] > > > > > Why don't you use -1 (or every negative number) to turn off the guide > > > column? > > > > Or use <= 0 for off and 1 for the first column... which is more > > consistent with how commands like g<C-g> and such show things... > > > > ~Matt > > I changed the behavior to make guidecolumn 1-based instead of 0-based, > added checks to make sure it is set to 0+ value and 0 turns it off. > Also added help text in options.txt. Google groups does not allow me > to attach files so I would do a separate reply from gmail with the > patch file. > > Please let me know if this looks good and can be incorporated in VIM. The name 'guidecolumn' starts with "gui", which is confusing, since it also works in a terminal. 'margincolumn' perhaps? I think the value "0" should be used to have a column at 'textwidth'. That way you can see where a line will be broken when it's formatted, without having to set two options. A negative value can be used to disable the column. I didn't have time to check for any problems with this patch, I hope others have tried it out and report any problems noticed. -- Mental Floss prevents moral decay! /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
