Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要:perldo s/assigned_to(?!_member|_role)/assigned_to_member/g在所有打开的缓冲区中运行此命令。我正在使用:perldo,因为内置的 vim 正则表达式(即%s/foo/bar/g)由于某种原因不能与我的负前瞻一起使用。
:perldo s/assigned_to(?!_member|_role)/assigned_to_member/g
:perldo
%s/foo/bar/g
通过我的研究,我找到了:bufdoand:execute "normal <foo>"命令,但我还没有弄清楚如何组合它们。
:bufdo
:execute "normal <foo>"
有谁知道我如何能够在所有打开的缓冲区上运行 perldo 命令?谢谢!
有什么问题:
:bufdo! perldo s/assigned_to(?!_member|_role)/assigned_to_member/g