在MacOS下iterm2通过vim配置Apache配置文件时发现一个问题快捷键 “command + c” 不能复制粘贴!!
起初以为我用的不是Mac键盘是Karabiner-Elements(一款模拟mac键盘的程序)的配置问题导致,但测试在其他程序里并没有此问题,唯独在vim下编辑文件时会出现此问题。 另外网上也有网友说在iterm2直接用鼠标划要复制的文字也可以实现复制的功能,但我还是希望能实现在vim通过快捷键( “ command + c “复制 & “command + v ” 粘贴)来实现复制粘贴的功能。

解决方案
选择iterm2 - > preferences -> profiles -> terminal -> 去掉 “ Enable mouse reporting “ 前面挑。如下截图:

再次在vim下测试command + c 快捷键复制 + command + v粘贴:)
