Wednesday, April 30, 2008

vim word movement with underscore delimiter

see VIM FAQ, 12.35.
:set iskeyword-=_

Also see the camelcasemotion plug-in, described in one of the comments below by


Adam Backstrom said...

Thanks for the post. No more dt_ for me!

Anonymous said...

Thank you!

phleet said...

Awesomely simple. Thanks

Anonymous said...

Hiya, I realise this is an old thread, but I found it when trying to add this functionality to vim, and I think there is a better way now:

CamelCase motion plugin (also works with underscores)

As described on StackOverflow, the plugin does not break autocompletion, which the previous method would do.

leo said...

Thanks a lot,, that looks extremely useful! I'll add it to the original post.