Indent guides will show you spaces and tabs nicely with different colors of bars, so that you can easily work with when you writing code like python which is indent specific. To can add this feature
to your vim editor by installing a small plugin. Here is the procedure installing it. download the package to /tmp form github repository as below

ubuntu@ubuntu:~> git clone https://github.com/nathanaelkane/vim-indent-guides.git /tmp/vim-indent-guides.git

this will around 4 directories,

ubuntu@ubuntu:~/.vim> ls -l vim-indent-guides/
total 20
-rw-rw-r-- 1 ionos ionos 3252 Jun  6 15:38 README.markdown
drwxrwxr-x 2 ionos ionos 4096 Jun  6 15:54 autoload
drwxrwxr-x 2 ionos ionos 4096 Jun  6 15:54 doc
drwxrwxr-x 2 ionos ionos 4096 Jun  6 15:54 plugin
drwxrwxr-x 2 ionos ionos 4096 Jun  6 15:38 test-files
ubuntu@ubuntu:~/.vim>

we need only 3 directories, autoload, doc, plugin, and autoload. Copy these 3 directories to “.vim” dir under you home folder. If you don’t have a .vim dir under home dir, just create it one. Let’s assure we don’t have .vim, to make sure we do it from scratch

ubuntu@ubuntu:~>  mkdir /home/ubuntu/.vim

Now i’m copying 3 dirs.

ubuntu@ubuntu:~>cd  /tmp/vim-indent-guides.git
ubuntu@ubuntu:/tmp/vim-indent-guides.git> cp -rvf auto load doc plugin /home/ubuntu/.vim

we have installed the plugin, now add few commands to .vimrc file so to vim load commands to use this plugin automatically every time you use vim.

ubuntu@ubuntu:~> vim /home/ubuntu/.vimrc

let g:indent_guides_auto_colors = 0
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd  guibg=red   ctermbg=7
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=6
autocmd VimEnter * :IndentGuidesEnable

Your .vimrc might have few commands by default, make sure you don’t disturb them, carefully add these 4 lines to it and save. Open any script which has indents, i mean if loops and for loops etc.. and you would see the coloured indent guides. Depending on the colorscheme , you can change indent guide colors. Above setting “ctermbg=7” and “ctermbg=6” shows “grey” and “light skyblue” kind of color. Try changing these number to 1, 2,3 etc ... to pick your selected color, other wise leave those settings as they are.