On 16/03/09 03:39, Nazri Ramliy wrote:
>
> On Mon, Mar 16, 2009 at 12:40 AM, jw232<[email protected]>  wrote:
>>
>>
>> Going either up or down
>
> See :he /\%c
>
> e.g: /\%9c[^ ]
>
>      searches for anything that is not a space in the 9th column
>
> nazri.

or

        /\%9v\S

searches forward for anything in the 9th virtual column, except a space 
or a tab. ("Virtual" column means each tab is counted for however many 
columns it occupies, and that "wide" CJK characters are counted for two 
columns each). (Use ? instead of / to search backward, of course.)

Then if you want only the "current" column, you can even use

        :call search('\%' . col('.') . 'v\S')

to search down, or

        :call search('\%' . col('.') . 'v\S', 'b')

to search up. Or map them to keys, using for instance

:map <F7>   :call search('<Bslash>%' . col('.') . 'v<Bslash>S')<CR>
:map <S-F7> :call search('<Bslash>%' . col('.') . 'v<Bslash>S', 'b')<CR>

see
        :help /\%v
        :help search()
        :help col()


Best regards,
Tony.
-- 
Basic, n.:
        A programming language.  Related to certain social diseases in
that those who have it will not admit it in polite company.

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

Reply via email to