我正在看tutsplus的在线教程,在其中一堂课上,老师开始使用:bn:bn:b#在缓冲区之间移动,但他忘了在谈论在缓冲区之间导航之前,没有提到如何将文件加载到缓冲区中,我搜索发现,使用:e filename或:o filename会将文件加载到缓冲区中。
因此,有什么区别,我无法理解vim内提供的文件说明。
不同之处在于您不应使用:o,这是vi兼容性的无用产物,而应使用:e(或其替代方法之一)。
来自:help :o:
Vim does not support open mode, since it's not really useful. For those
situations where ":open" would start open mode Vim will leave Ex mode, which
allows executing the same commands, but updates the whole screen instead of
only one line.
Run Code Online (Sandbox Code Playgroud)
只是……忘记该命令甚至存在。
FWIW,甚至vi规范对于什么是开放模式也很模糊。