Seeing spaces and tabs in vim

From Notes_Wiki

Home > Rocky Linux or CentOS > Rocky Linux 8.x > Text Editors > vim > Seeing spaces and tabs in vim

Normally we cannot differentiate between spaces and tabs in vim. However, if visualzing the difference between space and tab is important, we can use following:

:set lcs=space:_,tab:>~ list

Refer:


There is older article on this at Seeing whitespaces in vim


Home > Rocky Linux or CentOS > Rocky Linux 8.x > Text Editors > vim > Seeing spaces and tabs in vim