让我这样提问。 我在vim中打开一个新文件,(版本1)
#include<stdio.h>
main()
{
...blah
}
然后使用<Esc>:w<Enter>
来写入文件。然后进行更改(版本2)
#include<stdio.h>
main()
{
...blah
... edit1
... edit2 //and large number of changes here and there in code
}
然后我使用 <Esc>:w<Enter>
保存更改。
是否有一种方法可以直接撤销对版本1的更改(因为它是最后一次保存),即不需要不断按下 u
进行撤销?
git svn
,可以让你在本地使用git,在远程使用svn。 - Dean