From the course: Red Hat Certified Engineer (EX294) Cert Prep: 2 Using Ansible Playbooks
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Configure VIM for YAML
From the course: Red Hat Certified Engineer (EX294) Cert Prep: 2 Using Ansible Playbooks
Configure VIM for YAML
- [Narrator] VIM can also be used to write YAML. We're using VIM version eight in CentOS eight, which already has YAML support, so we don't have to install a plugin. If you're using an older version of VIM, you may want to install the vim-yaml plugin. We will however editor VIMRC file and add some configuration items. In a terminal on our toast one type in vi space tilde slash VIMRC, and hit Enter. We're going to add some VIM options here, which we'll discuss when we're done. Type in, go into insert mode by pressing the I key and then type in double quote space YAML, space config. This is a comment, newline line Backspace. Au exclamation mark, space buff, New File in camel text comma, buff, read post also in camel text, space asterisk, dot left curly bracket YAML comma YML right curly bracket space, set space file type equals YAML space fold method equals indent. New line, autocmd space file type in camel text, space YAML…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Introduction to playbooks1m 33s
-
(Locked)
Playbook language2m 4s
-
(Locked)
YAML tips and tricks4m 6s
-
(Locked)
Install the Atom editor2m 37s
-
(Locked)
Configure VIM for YAML6m 20s
-
(Locked)
Playbook hosts and users5m 22s
-
(Locked)
Playbook tasks list2m 43s
-
(Locked)
Playbook change handlers3m 2s
-
(Locked)
Verify Playbooks2m 59s
-
-
-
-
-
-
-