On Sunday, November 17, 2013 3:55:18 PM UTC-5, glts wrote:
> On Thu, Nov 14, 2013 at 2:14 AM, Daniel Thau <dant...@bedrocklinux.org> 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.
> 
> 
> 
> Just to add a dissenting opinion. A feature that is easy to implement
> 
> isn't necessarily a good addition to core Vim. For me, the proposed
> 
> functionality is only marginally useful and just cries for a plugin
> 
> solution. It would be really easy to do, too.
> 

If you mean my original proposal, while it could certainly be done in script it 
would be *much* cleaner to do it in vim's source.

If you mean Bram's proposed alteration of my proposal, not only would be easy 
to do, it's been done; someone else in this thread already pointed this one 
out: 
https://github.com/thinca/vim-textobj-between/blob/master/doc/textobj-between.txt

What I had hoped for was a bit different from that and I don't think could be 
done nnearly as cleanly in script as it could be in vim, but Bram didn't seem 
as keen on it.

> 
> Personally, I love to use a solid text object framework like
> 
> 
> 
> http://www.vim.org/scripts/script.php?script_id=2100
> 
>
> 
> and choose for myself which special-case text object I need on top of
> 
> that. I like that Vim only has a few core text objects and lets me fill
> 
> in the rest.

I don't really see how this in any way conflicts with that option.

> 
> By the way, "ii" is often used for "inner indent", which selects lines
> 
> with the same or greater amount of indentation as the current line:
> 
> 
> 
> http://www.vim.org/scripts/script.php?script_id=2484
> 
> http://www.vim.org/scripts/script.php?script_id=3037
> 

Good to know, "i" is out then.

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui