In Vim, what is the “alternate file”?

前端 未结 4 687
慢半拍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:49

    The alternate file is the file that was last edited in the current window. Actually when you use some command to open a new buffer, if the buffer that was displayed had a filename associated with it, that filename is recorded as alternate file name.

    See :help alternate-file.

提交回复
热议问题