lnk*_*nk3 14 vim copy-paste windows-subsystem-for-linux windows-terminal
我在新的 Windows 终端中使用 WSL Ubuntu 和 Vim,但是如果我必须使用 Cv进入视觉块模式,我不能,因为它充当粘贴。
我可以将它重新绑定到其他东西,但我没有找到我必须添加的命令.vimrc
,我认为它与inoremap 有关。
有什么建议吗?
And*_*dus 18
CTRL+v
is bound to paste in Windows Terminal by default. As of now, the only thing that's working is to disable that behaviour in the settings.json
. You can do that by pressing CTRL+,
or select Settings
in this menu and commenting out the line:
"keybindings": [
...
// { "command": "paste", "keys": "ctrl+v" }, <------ THIS LINE
Run Code Online (Sandbox Code Playgroud)
After doing this, you can switch to visual block mode as usual and paste with CTRL+SHIFT+v
.
I've found these issues on the project's GitHub about this problem:
https://github.com/microsoft/terminal/issues/5790
https://github.com/microsoft/terminal/issues/5641
小智 5
您只需更改默认的“settings.json”即可
原文:
{
"command":
{
"action": "copy",
"singleLine": false
},
"keys": "ctrl+c"
},
{
"command": "paste",
"keys": "ctrl+v"
},
Run Code Online (Sandbox Code Playgroud)
修改的 :
{
"command":
{
"action": "copy",
"singleLine": false
},
"keys": "ctrl+shift+c"
},
{
"command": "paste",
"keys": "ctrl+shift+v"
},
Run Code Online (Sandbox Code Playgroud)