neovim是不自帶與系統(tǒng)剪貼板互通的功能,在neovim中輸入:h clipboard 可以看到: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".
解決辦法:
用包管理器安裝一個用于管理系統(tǒng)剪貼板的命令行工具(xsel或xclip)即可!
在終端中執(zhí)行命令:sudo pacman -S xsel
安裝完成后重啟neovim,然后在命令模式下輸入"+yy 即可將當前光標說在行復制到系統(tǒng)剪貼板,這時候便可在其他任何接受文本輸入的地方,按 ctrl+v 粘貼了.