Tuesday, January 5, 2010

Re: Finding previous space or tab

On 4 jan, 18:58, Tim Chase <v...@tim.thechases.com> wrote:
> > I am in visual selection and encouter a problem finding the previous
> > tab or space
>
> > norm vF y
>
> > My aim is to visual select a word and then copy it.
>
> A couple items:  first, you may want to read up on text
> objects...there are "inner word" and "inner WORD" text objects
> that may simplify your selection:
>
>    norm yiw
>
> without needing to move around the end-point anchors of a visual
> selection.
>
> Additionally, for scripting purposes, you may be interested in
>
>    expand('<cword>')
>
> For more info, you can read at
>
>    :help iw
>    :help text-object
>    :help expand()
>
> -tim

I will use expand('<cword>') but how can I expand something like
that :
namespace::func
namespace:~bar

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment