如何在 Vim 中不延迟地退出可视模式? [英] How to exit visual mode without a delay in Vim?

查看:23
本文介绍了如何在 Vim 中不延迟地退出可视模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Vim 中,当处于可视模式时,我必须按 Esc 两次才能退出并关闭选择.按一次 Esc 后,我必须等待 2 秒钟才能关闭选择.

In Vim, when in Visual mode, I have to press Esc twice to exit it and turn off the selection. After one press of Esc I have to wait 2 seconds for the selection to turn off.

当按下 Esc 时,如何立即退出可视模式?

What can I do to exit Visual mode immediately when Esc is pressed?

推荐答案

执行以下命令对我有帮助:

Executing following command helped me:

set timeoutlen=1000 ttimeoutlen=0

参见:http://www.johnhawthorn.com/2012/09/vi-escape-delays/.

这篇关于如何在 Vim 中不延迟地退出可视模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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