如何返回到 Vim 中最后一行之前编辑的行? [英] How to go back to lines edited before the last one in Vim?

查看:21
本文介绍了如何返回到 Vim 中最后一行之前编辑的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道转到最后编辑行的 `. 命令.有没有办法在编辑历史中走得更远?我经常在浏览文件时不小心插入一些东西,撤消,但是 `. 不会再带我去我想要的地方.

I'm aware of the `. command that goes to last edited line. Is there a way to go further in the editing history? I often accidentally insert something while browsing the file, undo, but then `. will not bring me where I want anymore.

推荐答案

Try g ; and g ,.他们在变更列表中前后跳转.

Try g ; and g ,. They jump backward and forward in the changelist.

查看:help changelist了解更多详情.

这篇关于如何返回到 Vim 中最后一行之前编辑的行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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