这类似于问题VIM: insert or delete data based on position
我正在尝试在文件的每一行中的第 7 位替换(而不仅仅是插入)所需的文本。根据上述问题的解决方案中提供的正则表达式,我尝试了:
a. %s/\%=7c/text/ (failed error message - illegal character)
b. %s/\%7c/text/g (says correct amount of lines / changes were made BUT blank space is still there after "text")
c. %s/\%7c/text/ (same as b)