Tuesday, November 8, 2011

Re: How to change word boundary?

Am 07.11.2011 16:52, schrieb Peng Yu:
> Hi,
>
> "*" currently doesn't recognize the following as a single word. I
> think that I need to change iskeyword. But I don't want to explicitly
> specify iskeyword, rather I want to append -,:,#,/ to iskeyword and
> toggle it back once I'm done. Could you anybody let me know what is
> the best way to do so? Thanks!
>
>
> XXX-YYY:ZZZ#AAA/BBB

Given you have a :With command [1]:

:nn * :With isk+=/ isk+=- Do normal! *<CR>

[1] You can find one here:
http://www.vim.org/scripts/script.php?script_id=3800

--
Andy

--
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: