Consider the following line of Python:
print("\nHello, world!")
To change the word Hello
to Hola
one might like to simply ciw
. However that naive command replaces the n
of \n
as well. How might one configure VIM to ignore the leading character of a word if immediately preceding the word is found the character \
?
Note that VIM highlighting does recognize the leading n
as belonging to the \n
, so perhaps a solution could be based off of this.