Hep*_*ite 10
该信息包含在“ :help :buffers”中。我将在这里引用:
Indicators (chars in the same column are mutually exclusive):
u an unlisted buffer (only displayed when [!] is used)
|unlisted-buffer|
% the buffer in the current window
# the alternate buffer for ":e #" and CTRL-^
a an active buffer: it is loaded and visible
h a hidden buffer: It is loaded, but currently not
displayed in a window |hidden-buffer|
- a buffer with 'modifiable' off
= a readonly buffer
+ a modified buffer
x a buffer with read errors
Run Code Online (Sandbox Code Playgroud)
因此,要回答您的具体问题,“%”表示您执行“ :buffers”时光标所在窗口中的当前缓冲区。“a”表示您当前可以看到的缓冲区。最后,“#”是备用缓冲区,通常表示您正在编辑的最后一个缓冲区。
小智 5
此外,在执行文件时,#和%替代文字文件名。例如,在编辑 Python 文件时,如果您键入:!python %,它会将当前文件作为 Python 文件执行。同样,替换%为#执行替代文件。很有用。:)