打开缓冲区时,“ +”符号是什么意思?


9

我想在垂直拆分中打开终端缓冲区。

如果我尝试:vertical split terminal我得到一个名为“终端”的缓冲区,而不是终端缓冲区。

我最近了解到可以:vertical split +terminal打开终端缓冲区,但是找不到帮助文档来解释+的作用。

“ +”是什么意思,是特定于终端缓冲区还是更通用的东西?

聚苯乙烯

我也刚刚意识到我可以做得到:vertical split | terminal相同的行为(至少我认为相同)。

Answers:


9

在问之前应该看起来有点难,我找到了答案:

:help +cmd

                            *+cmd* *[+cmd]*
The [+cmd] argument can be used to position the cursor in the newly opened
file, or execute any other command:
    +       Start at the last line.
    +{num}      Start at line {num}.
    +/{pat}     Start at first line containing {pat}.
    +{command}  Execute {command} after opening the new file.
                {command} is any Ex command.
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.