帮助文本对于此命令的作用有点模糊。
Print [range] lines (default current line).
Note: If you are looking for a way to print your text
on paper see |:hardcopy|. In the GUI you can use the
File.Print menu entry.
See |ex-flags| for [flags].
Run Code Online (Sandbox Code Playgroud)
我知道我过去曾多次错误地使用它来表示 :p[rev],但我从未听过打印机的嗡嗡声。也没有出现任何奇怪的文件,也没有发现我所在的行出现在标准输出中。
那么,在 vim中输入:print 有什么作用呢?
vim ×1