5 Keys to Running Mastery

The late author and aikido master George Leonard identified five keys to mastery of any subject or undertaking. I will discuss those five keys and how they apply to becoming a running master. The…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Setup Your vim editor for Ansible Playbook

You may ignore this article if you are already an expert in vim as this is a quick note for those who are new to vim editor. As we know, Ansible is used by engineers from all platforms including Linux/Unix, Windows, Networking, DBA side, Developers, Middleware etc. And we know, Ansible controlnode is available only for unix based platforms so far. So handling playbooks is a headache as even a single white space in your playbook can spoil your entire day.

Learn about vim parameters and variables for easy editing of the yaml or any file format where indentation is very important. See some of the examples shown below.

See some of the defenitions below.

ts : tabstop — eg: tabstop=2et : expandtabsw : shiftwidth — eg: shiftwidth=4sts : softtabstop — eg: softtabstop=4

nu — show line number

Enable syntax

This is on by default in most of the cases but make sure.

Choose your colorscheme

You can see the installed colorschemes by typing :colorscheme and then a space and press tab in vim editor.

Show Line Numbers

You must enable the line number visibility

Make your cursor more visible

It would be great if you enable this as your current cursor position will be more visible.

Enable Indent Visibility

To set all items permanent

Edit your ~/.vimrc file and add below lines

Finally see the vim editor with autoindent , cursorline, indentlines, etc

Add a comment

Related posts:

The cure for America

We all have the moment when we learn that the world is not what we thought. That can take many forms and, for some, people doesn’t happen at all. As an American from a Midwest farming community that…

Why We Need to Take Climate Change Seriously

It is crazy to think our beautiful planet could become as hot as a ghost pepper. Our planet is on the way to be quite dangerous for our future grandkids, so dangerous that they are not going to be…

All you need to know about HODLing SWTH

SWTH is the native token of the Switcheo TradeHub Protocol, a custom built sidechain. This is the underlying blockchain that Demex runs on. The TradeHub protocol utilises a Proof of Stake (PoS)…