My goal is to do the following vi actions in a map
Find the 4th (or 5th if necessary) occurrence of the | symbol
add to - or change - the letters between the 4th and 5th | symbols to XXX
Seems like it would be simple.
However,
map Q 4f|lcwXXX^[
where the real command ends in an escape
results in
:map Q 4f|lcwXXX^[
The lcwXXX command is unknown.
I also tried
:map Q 5f|haXXX^[
The haXXX command is unknown.
and
:map Q 5f|hiXXX^[
The hiXXX command is unknown.
What is the technique to use so that this sequence can occur?
Find the 4th (or 5th if necessary) occurrence of the | symbol
add to - or change - the letters between the 4th and 5th | symbols to XXX
Seems like it would be simple.
However,
map Q 4f|lcwXXX^[
where the real command ends in an escape
results in
:map Q 4f|lcwXXX^[
The lcwXXX command is unknown.
I also tried
:map Q 5f|haXXX^[
The haXXX command is unknown.
and
:map Q 5f|hiXXX^[
The hiXXX command is unknown.
What is the technique to use so that this sequence can occur?