thaerkh / vim-indentguides

📐 Simple indentation guides for your buffers
Apache License 2.0
135 stars 11 forks source link

existing listchars is changed, list mode always activated #4

Closed Claudius42 closed 7 years ago

Claudius42 commented 7 years ago

It's a great plugin but I faced two issues: 1) list mode is always activated and 2) g:listchars got always changed even though 'tab:' and 'trail:' was already set within my vimrc I slightly adapted the plugin to solve both issues. If I shall/can contribute my changes via github please let me know how to do so.

Thermatix commented 7 years ago

I had this issue as well and it caused $ to be added to the end of every line, but I solved it by adding the following to my .vimrc:

set listchars=tab:›\ ,trail:•,extends:#,nbsp:.

which is probably not what you're looking for but it solve my problem at least.

Claudius42 commented 7 years ago

@Thermatix: Please find attached a version of your plugin where I fixed the issue. Please feel free to use or adapt. indentguides.vim.txt

thaerkh commented 7 years ago

Hi @Claudius42 , I've merged a very close variant (on by default). List mode, to the best of my knowledge, is needed so that tab indents and dots on the spaces appear correctly, which intended as default behaviour. Thank you for your contribution!