Am 14.12.2011 03:03, schrieb Thilo Six:
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+=^_
?
In the following (unlikely) case, :setl isk+=^_ will not work
:setl isk=!-~,^*,^\|,^\",192-255,^_,_
because "^_" is already there (and kept), and *followed* by "_" (or any
char-range including "_").
That's why I thought "^_" should be removed first and then added again
(to make sure it's at the end).
--
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