3

As you see in the picture, this is the line I meant.

None

First off, I'm using neoVIM. This line only appears when I try to edit python files. Everything is fine with any other language. I think It's because of syntastic because syntastic sets a maximum length for each line that is 79 characters I think, if I can recall. This red line delimits the 79th character. When any character exceeds this line, the This line is too long warning appears.

I tried to edit the maximum line length using this command

let g:syntastic_python_pylint_post_args="--max-line-length=200"

and I also tried to turn syntastic off for python files but the line is still there even when syntastic is not working. This is my init.vim file

Its generated by vim bootstrap but I added some edits to it.

How to get rid of that red line? Thanks in advance

2
  • 3
    :verbose set colorcolumn? – Christian Brabandt Jun 15 '18 at 13:45
  • @ChristianBrabandt it works, Thank you. set cc= . You pointed me to something I didn't know which is colorcolumn. After knowing it I managed to find the line that sets it and I turned it off. Thanks. – Moe Jun 15 '18 at 13:57
1

Add this line to your vimrc:

set colorcolumn=0

If you want colorcolumn to remain but with different color, then add

set colorcolumn=81 " or something you want
hi ColorColumn cterm=none gui=none guibg=white ctermfg=white " or whatever you like

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.