S
S
Sergey Burduzha2018-07-25 08:32:42
vim
Sergey Burduzha, 2018-07-25 08:32:42

How to display indentation in vim?

How to display indentation in vim, like here
5b580b2774314978300290.jpeg
These options did not help

set list
set lcs=tab:\|\  " the last character is space!

I opened another file in vim - and a miracle, the indents are displayed.
5b58146611799374940802.jpeg
Only you can see that it's all about the settings, such as set tabstop and so on.
I would like line breaks to be visible as well.
I will be glad to help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Burduzha, 2018-07-25
@serii81

Issue resolved.
Such settings in the .vimrc file helped

set tabstop=2			 " To match the sample file
set noexpandtab		 " Use tabs, not spaces
%retab!						 " Retabulate the whole file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question