vim复制功能(系统剪切板)配置

60 阅读1分钟

需要在~/.vimrc配置以下内容,这样按下+y才会将选中的内容复制到系统剪切板

if has("clipboard")
  set clipboard=unnamed
endif