This repository will create a custom VIMRC file for editing YAML files. It will add some Syntax checking and will make it look similar to VSCode for editing files. The playbook provided will install a few plugins for VIM as well as configure the plugins.
By default, line numbers, YAML linting, and column guides will be turned on. It will also have an underline following the cursor enabled by default for YAML files.
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 nu expandtab cursorline
You must be in command-mode in VIM to change the settings and control how VIM works.
-
Turning on/off Line numbers
Turn off Line Numbers:set nonu
Turn on Line Numbers:set nu
-
Turning on/off Column/Indention Guides
Toggle on/off Column/Indention Guides:IndentLinesToggle
-
Turn on/off Whitespace at End-of-Line (EOL)
Toggle on Whitespace at EOL:set list
Toggle off Whitespace at EOL:set nolist
-
Turn on/off Cursor Line
Toggle on Cursor Line:set cursorline
Toggle off Cursor Line:set nocursorline
-
Setting Color Column Guides
Toggle on Color Column Guides:set cc=3,5,7,9,11,13,15
Toggle off Color Column Guides:set cc=
Note
|
Plugins used have been forked to my repositories. Original repository sources can be found …
|