Issue
When i open any file for editing the lines are collapsed as you can see below:
$ 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 +
I have to keep expanding the +
tree to view entire file.
I want the vi editor to simple not collapse anything. All the lines should be visible in the vi
editor.
$ 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
Solution
You can try to put following line in ~/.vimrc:
se foldmethod=manual
Answered By - Philippe Answer Checked By - Clifford M. (WPSolving Volunteer)