VIM Ctrl-V 与 Windows 粘贴冲突 [英] VIM Ctrl-V Conflict with Windows Paste

查看:44
本文介绍了VIM Ctrl-V 与 Windows 粘贴冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 中使用 VIM.问题是我想使用 CtrlV 作为视觉模式.但是,该键与 Windows 粘贴有冲突.如何将此键重置回 VIM 可视模式而不是粘贴.我更喜欢在我的 _vimrc 配置文件中设置它.

I am using VIM in Windows. The problem is that I want to use CtrlV as a visual mode. However, this key has conflict with Windows paste. How can I reset this key back to VIM visual mode instead of pasting. I prefer to set this in my _vimrc configuration file.

推荐答案

来自 VIM 文档:

由于CTRLV是用来粘贴的,所以不能用它来启动blockwise Visual选择.您可以使用 CTRLQ 代替.您也可以在插入中使用 CTRLQ模式和命令行模式以获得 CTRLV 的旧含义.但是CTRLQ用于控制流时不适用于终端.

Since CTRLV is used to paste, you can't use it to start a blockwise Visual selection. You can use CTRLQ instead. You can also use CTRLQ in Insert mode and Command-line mode to get the old meaning of CTRLV. But CTRLQ doesn't work for terminals when it's used for control flow.

这篇关于VIM Ctrl-V 与 Windows 粘贴冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆