vim - 在 vim 命令行中移动
问题描述
我成为 vim 用户已有一段时间了,我知道如何在文件中移动,但无论如何都可以在编辑器命令行本身上这样做(有名称吗?)。
例如,我输入:vimgerp /sometext/ files/*.js
并意识到我拼写:vimgrep
错误,我只想跳到该行的开头并修复它。这里的任何其他类型的小技巧(在单词之间跳转——w、e 和 alt+left/right 似乎都不起作用)也很受欢迎。
解决方案
http://vimdoc.sourceforge.net/htmldoc/usr_20.html
<Left> one character left
<Right> one character right
<S-Left> or <C-Left> one word left
<S-Right> or <C-Right> one word right
CTRL-B or <Home> to begin of command line
CTRL-E or <End> to end of command line
推荐阅读
- python - 忽略链接后如何从 xlwings 访问工作表?
- numpy - 为什么 Python 和 CUDA 不支持半精度复数浮点运算?
- python-3.x - 熊猫将日期读取为字符串而不是日期时间
- timestamp - 两个不同的 Unix 时间戳使用 moment.js 返回相同的日期/时间
- java - 如何获取Android目录中的文件列表?
- python - 我收到 TypeError: null is not an object(evalating 'dataSource.map')
- ios - UITableView Cell 只需轻点几下即可呈现视图控制器
- terraform - 为节点池指定“点状”k8s 标签?
- python - 我如何将我的简单 python 代码循环回顶部 - 也在这里填充空间,因为它不会占用我的标题
- ionic-framework - 为什么 ionic 4 中的主应用程序 scss 文件不起作用?