Multiple commands on same line

后端 未结 7 2012
予麋鹿
予麋鹿 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:16

    You could define a function that executes your commands.

    function Func()
         :command
         :command2 
    endfunction
    

    And place this in, for example, your vimrc. Run the function with

    exec Func()
    

提交回复
热议问题