Treat underscores as word boundaries in terminal using vim mode
In order to specify underscores as Vim word boundaries when using vim mode in either bash or zsh, you can set the iskeyword option in your .vimrc file. This option takes a list of characters that Vim should consider as word boundaries. To add underscores to this list, add the character _ to the list. For example, to set underscores as word boundaries, you can add the following line to your .vimrc file:
Once this option is set, pressing the w key while the cursor is on the underscore in the example you provided will move the cursor to the w of "word".
0 comment threads