vim + COPY + mac over SSH

后端 未结 12 1201
悲哀的现实
悲哀的现实 2021-01-30 01:12

I access a sever over ssh on which I run vim for editing files. When I try to yank text from vim into an editor locally on my mac (lion) either with y OR \"+y it does not work.

12条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 01:26

    iTerm2 Shell Utilities come with it2copy which allows copying from a remote server to a client clipboard. Install Shell Utilities on the remote server and make sure you have Applications in terminal may access clipboard checked.

    Then, go into visual mode, select the text and execute <,'>:w !it2copy

提交回复
热议问题