为什么< C一(CTRL + A)在Windows的gvim下不能工作吗? [英] Why does < C-a> (CTRL+A) not work under gvim on windows?

查看:90
本文介绍了为什么< C一(CTRL + A)在Windows的gvim下不能工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用< C-a>( CTRL + A )在vim下进行了剪切,以增加游标下的变量.在Linux上运行的vim上这可以正常工作.但是,当我尝试在Windows下的gvim中执行此操作时,它会全选"(即突出显示或在视觉上选择当前窗口中的所有文本).如何更改此行为,或者如何恢复增量变量功能(例如,可能具有不同的键映射)?

I'm trying to use the < C-a> (CTRL+A) shorcut under vim to increment a variable under the cursor. This works fine under vim running on Linux. However when I try to do this in gvim under windows it "selects all" (i.e. highlights or visually selects all text in the current window). How can I change this behaviour or alternatively how can I recover the increment variable functionality (e.g. perhaps with a different key mapping)?

推荐答案

这是由于mswin.vim是由安装vim时生成的默认_vimrc所提供的. 只需用* nix下使用的.vimrc覆盖_vimrc,或删除mswin.vim.

This is because of mswin.vim that is sourced by the default _vimrc generated when you install vim. Just override your _vimrc with the .vimrc you are using under *nix, or delete mswin.vim.

这篇关于为什么&lt; C一(CTRL + A)在Windows的gvim下不能工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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