On Wed, Nov 13, 2013 at 06:06:25PM -0800, Ben Fritz wrote:
> On Wednesday, November 13, 2013 7:14:20 PM UTC-6, Daniel "paradigm" Thau 
> wrote:
> > Attached is a patch to add an 'autotextobject' setting which will treat
> > undefined text-objects like quote text objects, using the provided
> > character as bounds.  For example, with this setting if a user enters
> > 
> > "di," with the cursor between two commas, the text between the commas
> > will be removed.  This is very useful for editing lists.  Similarly, if
> > one is composing TeX being able to quickly operate on the area between
> > 
> > dollar signs is useful.  If one is editing snake_case_variables, being
> > able to do a quick "ci_" is also nice.  The key here is that it happens
> > on-the-fly with all as-of-yet-undefined objects without requiring the
> > 
> > user consider every possible character he/she would be interested in
> > ahead of time.
> > 
> > Outside of documentation and adding the setting itself, the it is only a
> > few additional lines of code.
> > 
> > I've wanted this feature for a while; if there is anything else I should
> > 
> > do to help get it upstreamed do let me know and I'll see what I can do.
> > 
> > - Daniel Thau
> 
> I cannot get this patch to apply using either whatever "patch" utility
> is installed on Solaris or GNU patch on Windows.

“patch -Np1 < autotextobject.diff” and “hg import --no-commit
autotextobject.diff” both worked fine for me in a clone of the Vim
sources, specifically:

changeset:   5496:34a3b852ec05
bookmark:    master
tag:         tip
user:        Bram Moolenaar <[email protected]>
date:        Tue Nov 12 18:09:29 2013 +0100
summary:     Added tag v7-4-091 for changeset 9502d1caf90b

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui