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

Configure VIM for YAML

From the course: Red Hat Certified Engineer (EX294) Cert Prep: 2 Using Ansible Playbooks

Start my 1-month free trial

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…

Contents