Based on DLMcMMayhem's hint, I found that following search will do what you need:
\A* searches for zero or more non-alphabetic characters (equivalent to
\a searches for any alphabetic character (equivalent to
\zs is a zero-width match (i.e. matches nothing) but tells the regex engine to reset the start of the match to the current position.
- When moving to a match with
n, the cursor will move to this position
hlsearch is turned on, the highlighting will begin at this position
If you need to use this frequently, you can set up a mapping in your
.vimrc. This can be a bit tricky, because there are multiple ways to insert a keyboard code, some of which will only work in Vim (not GVim).
The easiest, most compatible way is to type out the following characters into your
map <silent> <S-F11> /\A\zs\a<cr>
map sets up a keyboard mapping
<silent> flag tells
map not to echo the command when it executes
<S-F11> means Shift+F11
If you're unsure how to spell a key, you can type Ctrl+V and then the key you want to map to, which will generate a unique code for any key chosen. The codes generated in terminal Vim, however, will be unique to that terminal and are not portable; specifically, they do not work in GVim.
Finally comes the keys we want the mapping to type out for us when we use the mapping key
<cr> represents Enter; it's required because you type Enter to perform a search action
- 2018-09-17 Add
* to regex