使用Ctrl-O跳转/我在Vim中不起作用 [英] Jump with Ctrl-O/I doesn't work in my Vim

查看:451
本文介绍了使用Ctrl-O跳转/我在Vim中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows XP上使用GVim 7.2.在我的安装中,某些跳转命令无效,例如 + O Ctrl + I ,而:jump Ctrl + T 起作用.

I use GVim 7.2 on Windows XP. In my installation some of the jump commands don't work, such as +O and Ctrl+I, whereas :jump and Ctrl+T 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中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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