有没有办法 Ctrl-P 可以将所有选定的文件作为隐藏缓冲区打开?这就是我尝试将文件加载到缓冲区中的方式:
<c-p> (opens Ctrl-P in file mode)
<c-o>
a (marks all files in the match window)
i
最后一个“i”旨在将选定的文件作为隐藏缓冲区打开。相反,“i”出现在搜索对话框中。
来自 :help CtrlP
Opening multiple files:
<c-z>
- Mark/unmark a file to be opened with <c-o>.
- Mark/unmark a file to create a new file in its directory using <c-y>.
<c-o>
- Open files marked by <c-z>.
- When no file has been marked by <c-z>, open a console dialog with the
following options:
Open the selected file:
t - in a tab page.
v - in a vertical split.
h - in a horizontal split.
r - in the current window.
i - as a hidden buffer.
x - (optional) with the function defined in |g:ctrlp_open_func|.
Other options (not shown):
a - mark all files in the match window.
d - change CtrlP's local working directory to the selected file's
directory and switch to find file mode.