Solution 1:

The trick is to start with an empty selection, with your cursor just to the left of the word you want to select. Then, hit CtrlG (or AltF3 on Windows/Linux) to select all instances of that word:

lua code

or hit D (CtrlD on Win/Lin) to begin selecting them one at a time.