I would like to be able to customize word boundaries for the behavior of ctrl+right, etc. Where can I write something to do this? I’m perfectly happy to write regex or python to do it if needed, I just can’t figure out where to do that. I have already edited the word_separator variable and it had no effect on what I’m trying to do.
I want ctrl+right to move me an entire word, not counting extra word boundary characters. Examples:
- In “abc - def”, I want the first press to move past “abc”, and the second to move past “def”; I do not want to need a third press to move one character past the “-”.
- If my cursor is in the middle of several empty lines, I want ctrl+right to move me to the next word, not to the next empty line.
- In a list of quote strings, I want ctrl+right to move past each word and not also stop on each quotation mark separately
I found the following post here asking more or less the same thing, but no one answered:
Google is useless because I only get results about word counts and spellcheck. ChatGPT either talks about word separators, or basically says “that’s complicated do it yourself”.