このように質問させてください。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 への変更を直接元に戻す方法はありますか (最後の保存であるため)、つまり、常にingを押さずu
にundo