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...