【发布时间】:2021-09-16 02:22:51
【问题描述】:
当我打开任何文件进行编辑时,这些行会折叠起来,如下所示:
$ vi va_action.yml
1 ---
2
3 - name: "Play 1 - Set Destination details"
4 +-- 35 lines: hosts: localhost-----------------------------------------------------------------------------
39
40
41
42 - name: "Play 1.5 Validate files and folder on Destination nodes {{ dest_nodes }} with user {{ ansible_user }}"
43 +
我必须继续扩展 + 树才能查看整个文件。
我希望 vi 编辑器简单而不折叠任何东西。所有的行都应该在vi 编辑器中可见。
$ vi -version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 30 2020 08:08:00)
Garbage after option argument: "-version"
More info with: "vim -h"
$ uname -a
Linux myhost 3.10.0-1160.25.1.el7.x86_64 #1 SMP Tue Apr 13 18:55:45 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
【问题讨论】:
-
zR在正常模式下会展开所有折叠。