Multiple commands on same line

后端 未结 7 2024
予麋鹿
予麋鹿 2020-12-02 04:33

I\'ve been trying to find something that will let me run multiple commands on the same line in Vim, akin to using semicolons to separate commands in *nix systems or &a

7条回答
  •  不知归路
    2020-12-02 04:58

    Thought this might help someone trying to do substitutions in a chain and one fails

    from a comment

    % s/word/newword/ge | % s/word2/newword2/ge
    

    You can use the e flag to ignore the error when the string is not found.

提交回复
热议问题