Kubernetes – VIM Customized for YAML Editing

I don’t always have access to my customized Visual Studio Code IDE when I quickly need to edit or create some new Kubernetes deployment or ingress for example.

Keeping track of tabs, spaces and object position (!!!) is quite tricky in VIM’s default setup. Below are some settings that can lighten the burden and mimic a more capable IDE.

These settings can also be added to ~/.vimrc for persistence

set smarttab
set expandtab
set shiftwidth=4
set tabstop=4
set number

Keep calm and Vim 😌

Leave a Reply

Your email address will not be published. Required fields are marked *