问题描述
我在Windows XP上使用GVim 7.2.在我的安装中,某些跳转命令无效,例如 + 和 + ,而:jump
和 + 起作用.
I use GVim 7.2 on Windows XP. In my installation some of the jump commands don't work, such as + and +, whereas :jump
and + work.
这可能是什么原因?我检查了_vimrc
文件中是否存在<C-o>
的重新映射,但是似乎没有任何重新映射.我应该在哪里寻找这个问题的原因?
What might be the reason for this? I checked my _vimrc
file for a remapping of <C-o>
but there doesn't seem to be any remapping. Where should I look into to find the reason of this problem?
推荐答案
要在Windows上获得更多类似Unix的vim行为,您需要从C:\Program files\Vim\_vimrc
文件中注释掉以下几行:
To get more unix-like behaviour of vim on Windows you need comment out these lines from C:\Program files\Vim\_vimrc
file:
source $VIMRUNTIME/mswin.vim
behave mswin
CTRL-O
应该在vim重新启动后开始工作.
CTRL-O
should start working after restart of vim.
这篇关于使用Ctrl-O跳转/我在Vim中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!