gvim: passing the visually-selected text to the command line

后端 未结 2 2184
长发绾君心
长发绾君心 2021-02-10 02:05

I use gvim to store recipes of commands that I will execute, depending on output. Currently, I select the text in gvim and paste the commands into a terminal console, but I bet

2条回答
  •  暖寄归人
    2021-02-10 02:18

    If you are using the vim GUI, you can do set guioptions+=a. This way, any highlighted text inside gvim in visual mode gets pasted to a clipboard.

提交回复
热议问题