neovim 使用系統剪貼板
1.vim 與 neovim 使用系統剪切板的不同
Nvim has no direct connection to the system clipboard. Instead it depends on
a provider which transparently uses shell commands to communicate with the
system clipboard or any other clipboard "backend".
2.安裝xsel或xclip程序。
sudo apt install xclip
3.修改配置文件
init.vim中添加一行:
set clipboard+=unnamedplus
在neovim中選中文本 y
,就可以 Ctrl + V
到處粘貼了
在別處 Ctrl + C
,在neovim 中 "+p
進行粘貼。