简体   繁体   中英

Remove underscore as a word separator in VIM

since yesterday I can't use VIM search efficiently. If my cursor is on the 'f' of 'foo_bar', and I press '*' for searching inside the actual file, it only highlights and therefore searches for 'foo'.

'set iskeyword-=_' is just the opposite I want to do.

Not mentioning, that Ctags is unusable, since I'd have to mark the whole word visually, before searching in my tags.

Has anybody an idea? Hint: It's just yesterday, that I started using the spell check.

Best, Plattenschieber

Just answering so that it doesn't show up as unanswered in the listing. Generally you are on the track with your set iskeyword-=_ . You just need to switch the - with a plus, this adds it to the keyword list however.

Why however your spell checker should have any influence on that however is beyond me, I've been using the spell checker (with different languages) for a long time and never experienced this problem.

Does the problem arise again if you turn the spell checker on again?

\\Paul

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM