In Vim, what is the “alternate file”?

前端 未结 4 685
慢半拍i
慢半拍i 2021-01-01 09:26

I just ran :help registers in Vim and noticed that # \'contains the name of the alternate file\'.

I have seen an example for renaming files

4条回答
  •  长发绾君心
    2021-01-01 09:33

    I 've always interpreted the "alternate file" as being the "previous file", so it is an handy way to jump back to the buffer you were editing.

提交回复
热议问题