patstockwell / vim-monokai-tasty

VIM Colour scheme
390 stars 51 forks source link

How do I get the indent line '.' for python? #28

Closed codehia closed 4 years ago

patstockwell commented 4 years ago

Hi @codehia, I think you're asking about whitespace characters to be able to count indentation, is that right?

For example:

def md_prefix(i):
    return f"{i * '  '}*" if i else "\n##" # With empty whitespace

def·md_prefix(i):
····return·f"{i·*·'··'}*"·if·i·else·"\n##" # With visible characters filling the whitespace

# Note: the dots are not actual characters in the file, they are only visible in vim.

If this is what you are after, you can add the following settings to your vimrc file. This is not specific to python or vim-monokai-tasty, it will show whitespace on all files using any colorscheme.

set list                                      " display unprintable whitespace characters
set listchars=tab:├─,trail:·,space:·          " characters to use for unprintable whitespace characters

Let me know if this helps!

codehia commented 4 years ago

@patstockwell Thanks a lot. that helped.