Multiple commands on same line

后端 未结 7 2031
予麋鹿
予麋鹿 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 05:18

    Put (Carriage Return/Enter) between and after commands. For example:

    map  :w:!make && ./run
    

    Don't use | because:

    • Some commands have problems if you use | after them

    • | does not work consistently in configuration files, see :help map_bar

提交回复
热议问题