Tuesday, December 13, 2011

Re: Make underscore a non-word character in the current buffer

Andy Wokula wrote the following on 13.12.2011 22:31

Hello Andy,

-- <snip> --
>> :setlocal isk-=_
>>
>> to remove "_" from the 'iskeyword' settings for the current buffer.
>>
>> :help 'isk'
>> :help :set-=
>
> May not work always, e.g. for help buffers, 'iskeyword' is set to
> :set isk?
> !-~,^*,^|,^",192-255
> where ":setl isk-=_" is not intelligent enough.
>
> You could then try
> :setl isk+=^_
>
> or even:
> :setl isk-=^_ isk+=^_

Am i wrong or did you mean:
:setl isk-=_ isk+=^_
?

> (to make sure "^_" is at the end)

--
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F


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