如何将光标移动到特定的行和列? [英] How do I move the cursor to a specific row and column?

查看:36
本文介绍了如何将光标移动到特定的行和列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

:30 将我的光标移动到第 30 行的开头.

:30 will move my cursor to the beginning of line 30.

如何告诉 Vim 将光标放在第 y 行第 x 列?这可能吗不使用箭头键或 hjkl 键?

How can I tell Vim to place the cursor at line y, column x? Is this possible without using the arrow keys or h, j, k, l keys?

我运行的是 Vim 7.3.429 版.

I am running Vim version 7.3.429.

推荐答案

尝试使用数字后跟管道来到达该行中的指定列.

Try a number followed by a pipe to get to the specified column in that line.

80| 应该让你在该行中定位 80.

80| should get you to position 80 in that line.

如果您想转到特定的 x,y 位置,我不确定那个位置.

If you are looking to go to a specific x,y position, I am not sure on that one.

这篇关于如何将光标移动到特定的行和列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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