Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当使用这些命令将文件加载到缓冲区时,vim中的:o和:e之间有什么区别?_Vim_Vi - Fatal编程技术网

当使用这些命令将文件加载到缓冲区时,vim中的:o和:e之间有什么区别?

当使用这些命令将文件加载到缓冲区时,vim中的:o和:e之间有什么区别?,vim,vi,Vim,Vi,我在看tutsplus的在线教程,在其中一节课上,老师开始使用:bn:bn:b#在缓冲区之间移动,但他在谈到在缓冲区之间导航之前忘记了如何将文件加载到缓冲区中,我搜索并发现使用:e filename或:o filename可以将文件加载到缓冲区中 那么,区别是什么呢?我无法理解vim中提供的文档解释 不同之处在于,您不应该使用:o,这是一种与vi兼容的无用人工制品,而应该使用:e(或其替代品之一) 来自:帮助:o: Vim does not support open mode, since it

我在看tutsplus的在线教程,在其中一节课上,老师开始使用:bn:bn:b#在缓冲区之间移动,但他在谈到在缓冲区之间导航之前忘记了如何将文件加载到缓冲区中,我搜索并发现使用:e filename或:o filename可以将文件加载到缓冲区中


那么,区别是什么呢?我无法理解vim中提供的文档解释

不同之处在于,您不应该使用
:o
,这是一种与vi兼容的无用人工制品,而应该使用
:e
(或其替代品之一)

来自
:帮助: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.
只是…忘了命令是存在的

FWIW,甚至对开放模式是什么和做什么都相当模糊