Re: Add support for guidecolumn in VIM

2009-06-12 Fir de Conversatie _Lone
On Jun 1, 6:28 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 28/05/09 05:10, _Lone wrote: [...] I looked at adding 1px highlighting instead of whole character background. But it seems it would be very difficult. The reason is that the way highlighting works is by storing

Re: Add support for guidecolumn in VIM

2009-06-01 Fir de Conversatie Tony Mechelynck
On 28/05/09 05:10, _Lone wrote: [...] I looked at adding 1px highlighting instead of whole character background. But it seems it would be very difficult. The reason is that the way highlighting works is by storing the background color for character which is how various highlights are done.

Re: Add support for guidecolumn in VIM

2009-05-27 Fir de Conversatie _Lone
On May 5, 11:14 am, Bram Moolenaar b...@moolenaar.net wrote: Pankaj Garg wrote: On May 4, 10:50 pm, Dominique Pellé dominique.pe...@gmail.com wrote: _Lone wrote: On May 2, 11:32 pm, Dominique Pellé dominique.pe...@gmail.com wrote: _Lone wrote: I have modified the patch. The

Re: Add support for guidecolumn in VIM

2009-05-08 Fir de Conversatie Ricky
, I think it make confuse. Every time I need set mc again manually in new tab. -- From: Tony Mechelynck antoine.mechely...@gmail.com Sent: Friday, May 08, 2009 8:47 AM To: vim_dev@googlegroups.com Subject: Re: Add support for guidecolumn in VIM Yes

Re: Add support for guidecolumn in VIM

2009-05-07 Fir de Conversatie Tony Mechelynck
On 04/05/09 15:28, Ricky wrote: Hi again I found out the reason now. The margin column high-light become confuse when double-byte characters. See attach. Yes, as I noted earlier, the character will be fully highlighted if the first of its two display cells is on the highlighted column, it

Re: Add support for guidecolumn in VIM

2009-05-07 Fir de Conversatie Tony Mechelynck
On 04/05/09 20:20, Dominique Pellé wrote: Ricky wrote: Hi again I found out the reason now. The margin column high-light become confuse when double-byte characters. See attach. But it's not a problem, nobody use double-byte write programs. If i set mc=??, margin column

Re: Add support for guidecolumn in VIM

2009-05-06 Fir de Conversatie Tony Mechelynck
On 05/05/09 07:50, Dominique Pellé wrote: _Lone wrote: [...] Hi Dominique, Could you please try cursor column without the patch and see what that does? I implemented the margincolumn to behave similar to cursorcolumn so I think they both would behave the same. But still it would be good to

Re: Add support for guidecolumn in VIM

2009-05-05 Fir de Conversatie _Lone
On May 4, 10:50 pm, Dominique Pellé dominique.pe...@gmail.com wrote: _Lone wrote: On May 2, 11:32 pm, Dominique Pellé dominique.pe...@gmail.com wrote: _Lone wrote: I have modified the patch. The name is now margincolumn. The behavior is: 'mc' = 0 - off 'mc' 0 - highlightes

Re: Add support for guidecolumn in VIM

2009-05-05 Fir de Conversatie Bram Moolenaar
Dennis Benzinger wrote: Am 01.05.2009 21:23, Matt Wozniski schrieb: [...] I agree. I think that 'guidecolumn' is a much better name. [...] Me too. Also, I agree with Gary - it's not inconceivable that someone might want two guides at different spots representing different

Re: Add support for guidecolumn in VIM

2009-05-05 Fir de Conversatie Bram Moolenaar
Pankaj Garg wrote: On May 4, 10:50 pm, Dominique Pellé dominique.pe...@gmail.com wrote: _Lone wrote: On May 2, 11:32 pm, Dominique Pellé dominique.pe...@gmail.com wrote: _Lone wrote: I have modified the patch. The name is now margincolumn. The behavior is: 'mc' = 0 - off

Re: Add support for guidecolumn in VIM

2009-05-04 Fir de Conversatie Ricky
: Sunday, May 03, 2009 4:35 PM To: vim_dev@googlegroups.com Subject: Re: Add support for guidecolumn in VIM Hi, I compile with BIG and OLE features then copy the gvim.exe to override my old version, but it not work. I use : set mc=80 or set mc=72 both not highlight a column on the screen

Re: Add support for guidecolumn in VIM

2009-05-04 Fir de Conversatie James Vega
On Mon, May 04, 2009 at 09:28:57PM +0800, Ricky wrote: Hi again I found out the reason now. The margin column high-light become confuse when double-byte characters. See attach. But it's not a problem, nobody use double-byte write programs. This is a bad assumption to make. There

Re: Add support for guidecolumn in VIM

2009-05-04 Fir de Conversatie Dominique Pellé
Ricky wrote: Hi again   I found out the reason now.   The margin column high-light become confuse when double-byte characters. See attach.   But it's not a problem, nobody use double-byte write programs.   If i set mc=??, margin column will disappear when crate a new tab. I observe

Re: Add support for guidecolumn in VIM

2009-05-04 Fir de Conversatie Lech Lorens
On 03-May-2009 Ricky richi...@live.com wrote: Hi, I compile with BIG and OLE features then copy the gvim.exe to override my old version, but it not work. I use : set mc=80 or set mc=72 both not highlight a column on the screen. Is there anything wrong? Have you applied

Re: Add support for guidecolumn in VIM

2009-05-04 Fir de Conversatie _Lone
On May 2, 11:32 pm, Dominique Pellé dominique.pe...@gmail.com wrote: _Lone wrote: I have modified the patch. The name is now margincolumn. The behavior is: 'mc' = 0 - off 'mc' 0 - highlightes the column. 'mc' 0 - makes 'mc' = 'tw + 1' and highlightes that column. I also updated

Re: Add support for guidecolumn in VIM

2009-05-04 Fir de Conversatie Dominique Pellé
_Lone wrote: On May 2, 11:32 pm, Dominique Pellé dominique.pe...@gmail.com wrote: _Lone wrote: I have modified the patch. The name is now margincolumn. The behavior is: 'mc' = 0 - off 'mc' 0 - highlightes the column. 'mc' 0 - makes 'mc' = 'tw + 1' and highlightes that column. I

Re: Add support for guidecolumn in VIM

2009-05-03 Fir de Conversatie Dominique Pellé
_Lone wrote: I have modified the patch. The name is now margincolumn. The behavior is: 'mc' = 0 - off 'mc' 0 - highlightes the column. 'mc' 0 - makes 'mc' = 'tw + 1' and highlightes that column. I also updated the related documentation is option.txt. Thanks _Lone I've tested your

Re: Add support for guidecolumn in VIM

2009-05-03 Fir de Conversatie Ricky
@googlegroups.com Subject: Re: Add support for guidecolumn in VIM On Fri, May 1, 2009 at 6:55 AM, Bram Moolenaar b...@moolenaar.net wrote: Pankaj Garg wrote: On Apr 30, 9:30=A0am, Ben Fritz fritzophre...@gmail.com wrote: On Apr 29, 11:42=A0am, Bram Moolenaar b...@moolenaar.net wrote

Re: Add support for guidecolumn in VIM

2009-05-02 Fir de Conversatie Tony Mechelynck
On 30/04/09 18:30, Ben Fritz wrote: On Apr 29, 11:42 am, Bram Moolenaarb...@moolenaar.net wrote: The name 'guidecolumn' starts with gui, which is confusing, since it also works in a terminal. 'margincolumn' perhaps? I agree. If a user uses :help guiC-D for example, they would NOT be

Re: Add support for guidecolumn in VIM

2009-05-02 Fir de Conversatie Tony Mechelynck
On 01/05/09 20:42, Gary Johnson wrote: [...] As for the name, I don't see 'guidecolumn' as being a problem. I doubt that anyone would confuse it with a GUI command. There are lots of English words having the same initial letters but unrelated meanings. :help comm^D shows some examples of

Re: Add support for guidecolumn in VIM

2009-05-02 Fir de Conversatie Kazuo Teramoto
I'm getting segmentation faults when setting the guidecolumn to any number The gdb backtrace output is: --- Program received signal SIGSEGV, Segmentation fault. 0x005374fa in showruler (always=0) at screen.c:9482 9482 leif ((*p_stl != NUL ||

Re: Add support for guidecolumn in VIM

2009-05-02 Fir de Conversatie Kazuo Teramoto
On Sat, May 2, 2009 at 8:09 PM, Kazuo Teramoto kaz@gmail.com wrote: I'm getting segmentation faults when setting the guidecolumn to any number The gdb backtrace output is: --- Program received signal SIGSEGV, Segmentation fault.

Re: Add support for guidecolumn in VIM

2009-05-02 Fir de Conversatie Kazuo Teramoto
On Sat, May 2, 2009 at 8:25 PM, Kazuo Teramoto kaz@gmail.com wrote: On Sat, May 2, 2009 at 8:09 PM, Kazuo Teramoto kaz@gmail.com wrote: I'm getting segmentation faults when setting the guidecolumn to any number The gdb backtrace output is: ---

Re: Add support for guidecolumn in VIM

2009-05-02 Fir de Conversatie _Lone
On Fri, May 1, 2009 at 6:55 AM, Bram Moolenaar b...@moolenaar.net wrote: Pankaj Garg wrote: On Apr 30, 9:30=A0am, Ben Fritz fritzophre...@gmail.com wrote: On Apr 29, 11:42=A0am, Bram Moolenaar b...@moolenaar.net wrote: The name 'guidecolumn' starts with gui, which is confusing,

Re: Add support for guidecolumn in VIM

2009-05-02 Fir de Conversatie Kazuo Teramoto
On Sat, May 2, 2009 at 8:09 PM, Kazuo Teramoto kaz@gmail.com wrote: I'm getting segmentation faults when setting the guidecolumn to any number The gdb backtrace output is: --- Program received signal SIGSEGV, Segmentation fault.

Re: Add support for guidecolumn in VIM

2009-05-02 Fir de Conversatie _Lone
On May 2, 7:32 pm, Kazuo Teramoto kaz@gmail.com wrote: On Sat, May 2, 2009 at 8:09 PM, Kazuo Teramoto kaz@gmail.com wrote: I'm getting segmentation faults when setting the guidecolumn to any number The gdb backtrace output is: ---

Re: Add support for guidecolumn in VIM

2009-05-02 Fir de Conversatie Kazuo Teramoto
On Sun, May 3, 2009 at 12:11 AM, _Lone lost.stran...@gmail.com wrote: Are you running on Linux/Unix? I don't have Linux/Unix and I have only tested with Windows. Can someone else who has access to *nix please take a look? The crash seems to be in an area outside of the patch changes but can

Re: Add support for guidecolumn in VIM

2009-05-01 Fir de Conversatie Bram Moolenaar
Pankaj Garg wrote: On Apr 30, 9:30=A0am, Ben Fritz fritzophre...@gmail.com wrote: On Apr 29, 11:42=A0am, Bram Moolenaar b...@moolenaar.net wrote: The name 'guidecolumn' starts with gui, which is confusing, since it also works in a terminal. =A0'margincolumn' perhaps? I agree. If

Re: Add support for guidecolumn in VIM

2009-05-01 Fir de Conversatie Gary Johnson
On 2009-05-01, Bram Moolenaar wrote: Pankaj Garg wrote: On Apr 30, 9:30=A0am, Ben Fritz fritzophre...@gmail.com wrote: On Apr 29, 11:42=A0am, Bram Moolenaar b...@moolenaar.net wrote: The name 'guidecolumn' starts with gui, which is confusing, since it also works in a terminal.

Re: Add support for guidecolumn in VIM

2009-05-01 Fir de Conversatie Matt Wozniski
On Fri, May 1, 2009 at 2:42 PM, Gary Johnson wrote: On 2009-05-01, Bram Moolenaar wrote: Pankaj Garg wrote: On Apr 30, 9:30 am, Ben Fritz wrote: On Apr 29, 11:42 am, Bram Moolenaar wrote: The name 'guidecolumn' starts with gui, which is confusing, since it also works in a

Re: Add support for guidecolumn in VIM

2009-05-01 Fir de Conversatie _sc_
On Friday 01 May 2009 2:23 pm, Matt Wozniski wrote: I agree. I think that 'guidecolumn' is a much better name. Whenever people show up in freenode's #vim asking about this feature, the first phrase they use for it is guide column or guide line, presumably this is because that's what other

Re: Add support for guidecolumn in VIM

2009-04-30 Fir de Conversatie Ben Fritz
On Apr 29, 11:42 am, Bram Moolenaar b...@moolenaar.net wrote: The name 'guidecolumn' starts with gui, which is confusing, since it also works in a terminal.  'margincolumn' perhaps? I agree. If a user uses :help guiC-D for example, they would NOT be expecting 'guidecolumn' to show up! I

Re: Add support for guidecolumn in VIM

2009-04-30 Fir de Conversatie _Lone
On Apr 30, 9:30 am, Ben Fritz fritzophre...@gmail.com wrote: On Apr 29, 11:42 am, Bram Moolenaar b...@moolenaar.net wrote: The name 'guidecolumn' starts with gui, which is confusing, since it also works in a terminal.  'margincolumn' perhaps? I agree. If a user uses :help guiC-D for

Re: Add support for guidecolumn in VIM

2009-04-29 Fir de Conversatie Bram Moolenaar
Pankaj Garg wrote: On Apr 14, 10:29 pm, Matt Wozniski m...@drexel.edu wrote: On Wed, Apr 15, 2009 at 1:18 AM, Dennis Benzinger dennis.benzin...@gmx.net wrote: Hi! Am 14.04.2009 23:18, _Lone schrieb: To set 'guidecolumn' you can do :set guidecolumn=N where N is the

Re: Add support for guidecolumn in VIM

2009-04-17 Fir de Conversatie Tony Mechelynck
On 16/04/09 22:33, Thomas Ibbotson wrote: [...] This would be very good used in conjuction with the 'textwidth' option. When I first used vim to write git commit messages I was taken by surprise by the automatic line wrapping as I hadn't come across it before. A line showing where this was

Re: Add support for guidecolumn in VIM

2009-04-16 Fir de Conversatie Tony Mechelynck
On 16/04/09 03:55, _Lone wrote: [...] Can one of the maintainer of the VIM please review this patch and let me know the feedback and whether this can be accepted or not? Once this is accepted, I would work on changing it for the GUI but I want that to be a different patch (as that is sort of

Re: Add support for guidecolumn in VIM

2009-04-16 Fir de Conversatie Hari Krishna Dara
On Thu, Apr 16, 2009 at 1:51 AM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 15/04/09 21:57, Ingo Karkat wrote: On 15-Apr-09 21:41, _Lone wrote: On Apr 15, 11:36 am, Gary Johnsongaryj...@spocom.com  wrote: On 2009-04-15, _Lone wrote: On Apr 14, 8:50 pm, Nico

Re: Add support for guidecolumn in VIM

2009-04-16 Fir de Conversatie Bram Moolenaar
Pankaj Garg wrote: On Apr 15, 10:17 am, _Lone lost.stran...@gmail.com wrote: On Wed, Apr 15, 2009 at 10:16 AM, _Lone lost.stran...@gmail.com wrote: On Apr 14, 10:29 pm, Matt Wozniski m...@drexel.edu wrote: On Wed, Apr 15, 2009 at 1:18 AM, Dennis Benzinger

Re: Add support for guidecolumn in VIM

2009-04-16 Fir de Conversatie Gary Johnson
On 2009-04-16, Thomas Ibbotson wrote: This would be very good used in conjuction with the 'textwidth' option. When I first used vim to write git commit messages I was taken by surprise by the automatic line wrapping as I hadn't come across it before. A line showing where this was going to

Re: Add support for guidecolumn in VIM

2009-04-15 Fir de Conversatie _Lone
On Apr 14, 10:29 pm, Matt Wozniski m...@drexel.edu wrote: On Wed, Apr 15, 2009 at 1:18 AM, Dennis Benzinger dennis.benzin...@gmx.net 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

Re: Add support for guidecolumn in VIM

2009-04-15 Fir de Conversatie _Lone
On Apr 14, 8:50 pm, Nico Weber nicolaswe...@gmx.de wrote: 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

Re: Add support for guidecolumn in VIM

2009-04-15 Fir de Conversatie Gary Johnson
On 2009-04-15, _Lone wrote: On Apr 14, 8:50 pm, Nico Weber nicolaswe...@gmx.de wrote: 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

Re: Add support for guidecolumn in VIM

2009-04-15 Fir de Conversatie _Lone
On Apr 15, 11:36 am, Gary Johnson garyj...@spocom.com wrote: On 2009-04-15, _Lone wrote: On Apr 14, 8:50 pm, Nico Weber nicolaswe...@gmx.de wrote: 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

Re: Add support for guidecolumn in VIM

2009-04-15 Fir de Conversatie Ingo Karkat
On 15-Apr-09 21:41, _Lone wrote: On Apr 15, 11:36 am, Gary Johnson garyj...@spocom.com wrote: On 2009-04-15, _Lone wrote: On Apr 14, 8:50 pm, Nico Weber nicolaswe...@gmx.de wrote: To set 'guidecolumn' you can do :set guidecolumn=N where N is the column. If N is 0 then guidecolumn is turned

[Patch] Add support for guidecolumn in VIM

2009-04-14 Fir de Conversatie Pankaj Garg
Hi Everyone, This is my first patch for VIM so pardon me if I did not follow any instructions properly. This patch would allow you to create a vertical highlighted line at a specified column such as column 80. Very useful if you don't want your code to exceed 80 columns as followed by many

[Patch] Add support for guidecolumn in VIM

2009-04-14 Fir de Conversatie _Lone
Hi Everyone, This is my first patch for VIM so pardon me if I did not follow any instructions properly. This patch would allow you to create a vertical highlighted line at a specified column such as column 80. Very useful if you don't want your code to exceed 80 columns as followed by many

Re: Add support for guidecolumn in VIM

2009-04-14 Fir de Conversatie Dennis Benzinger
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

Re: Add support for guidecolumn in VIM

2009-04-14 Fir de Conversatie Matt Wozniski
On Wed, Apr 15, 2009 at 1:18 AM, Dennis Benzinger dennis.benzin...@gmx.net 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