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

后端 未结 2 1402
耶瑟儿~
耶瑟儿~ 2021-02-10 01:41

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:14

    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.

提交回复
热议问题