Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Planning Vim 7.3
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gregor Uhlenheuer  
View profile  
 More options Jul 12 2010, 5:43 pm
From: Gregor Uhlenheuer <kongo2...@googlemail.com>
Date: Mon, 12 Jul 2010 23:43:45 +0200
Local: Mon, Jul 12 2010 5:43 pm
Subject: Re: Planning Vim 7.3

On 04/18/2010 12:44 PM, Gregor Uhlenheuer wrote:

> On 04/11/2010 04:33 PM, Bram Moolenaar wrote:

>> I will try to include a few patches that have been pending for a while.
>> I don't have much time available, thus I will only include things that
>> take a few hours of my time.  That basically means patches that are
>> ready to be included.

> Hi,

> a few months ago I posted an updated patch for the margincolumn
> feature that actually allows you to highlight a specified column (i.e.
> to show the current buffer's textwidth). Since then I kept updating it
> and use it without any problems.

Hi again,

since I am hoping that the 'margincolumn' feature will find its way
into the oncoming vim 7.3 release I tried to extend the feature by
allowing to define multiple columns to be highlighted.

As far as I could test the changes it works pretty well. A few notes
regarding the implementation: The 'margincolumn' setting is now a
string type setting used like this:

" highlight columns 20, 40 and textwidth+1
:set mc=-1,20,40

Internally the columns are stored inside a sorted fixed-size integer
array to reduce redrawing time. As far I can tell this way merely
increases redrawing time. Perhaps there is an even better solution out
there (sadly this win_line() function is a really ugly beast ;)) but
this is the best working solution I could come up with.

Perhaps you guys want to give it a try

The patch against the latest vim73 mercurial changeset is attached.

Cheers,
Gregor

  margincolumn.patch
17K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.