Wednesday, November 21, 2012

Re: Snippet for adding closing parentheses in ultisnips

snippet ( "Brackets" i
(${VISUAL}$1)
endsnippet

The option is inword expansion. I wish people would read the docs before asking on the internet.

On Sunday, November 4, 2012 8:34:31 PM UTC+1, Chris Lott wrote:
> On Sun, Nov 4, 2012 at 10:08 AM, Marco <netuse@lavabit.com> wrote:
>
> > 2012-11-04 Chris Lott:
>
> >
>
> >
>
> > The only thing that bothers me is that the default key combination
>
> > to jump over delimiters is <S-Tab>. I'd like to map it <Ctrl-j>.
>
> > Then it works in a consistent fashion with the other jumps. How can
>
> > I achieve that?
>
>
>
> I can't help you there...
>
>
>
> > As you mention, typing the closing character is also possible. This
>
> > is not feasible in my opinion. You have to type the open character,
>
> > the text in between and then the closing one. What do you need the
>
> > plugin for? And the closing characters are sometimes, e.g. ) much
>
> > harder to reach than <Ctrl-j> which completely lies on the homerow.
>
>
>
> I find reaching for the CTRL-j to be more of a pain than almost any
>
> punctuation! But either way it's a single keystroke and I see the
>
> utility of any of these methods as much for proper balance as for
>
> easing the placement of a second character.
>
>
>
> c
>
> --
>
> Chris Lott <chris@chrislott.org>

--
You received this message from the "vim_use" 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

No comments:

Post a Comment