I'm trying to do a search within a visual block, (from a vimscript).
This is my code:
aaaaaaaaaaaa
a26 text tea
atext text a
atext 27 12a
a11 text 25a
aaaaaaaaaaaa
Let say my block selection is within the 'a
' border and I want to search all numbers with 2 characters:
This is my search:
/\%V\d\{2}\%V
The problem with the 2nd \%V
is that it shortened a visual block selection with 1 characters, it doesn't find the number 12 and 25 in my above example.
How can I extend the visual block selection (in a vimscript) with 1 character to the right, do the search and return to previous visual block selection?