im using Neovim from my WSL terminal. I've been exploring the multiple plugins of this amazing open source project and this made me change my init.vim, a lot. Now i've messed it up and i don know how to make him 'normal'.

Those are my init.vim plugins

:enter image description here

And those are the changes i've aded to it

enter image description here

The problem

now, everytime o try to open a python file, it higlights some redblocks. I want to take them out but i dont know how to do this, here's an example of how my code is right now:

enter image description here

How can i remove those redblocks? Any help is more than welcome


I know that my init.vim is a mess, i also need to discover how can i copy stuff from neovim to clipboard.

  • 1
    those are trailing whitespaces highlighted as error
    – Maxim Kim
    Commented Nov 11, 2020 at 15:41
  • remove both "vim-polyglot"s you have and try again.
    – Maxim Kim
    Commented Nov 11, 2020 at 15:42
  • 1
    Welcome to Vi and Vim! Please don't post images of text
    – D. Ben Knoble
    Commented Nov 11, 2020 at 15:45
  • @D.BenKnoble got it, i don't know how to pase stuff from vim to my clipboard, but when i find out, i'll change the question.
    – Occhima
    Commented Nov 11, 2020 at 15:47
  • 1
    @Occhima try using the * or + registers ("*y, for example) or disabling the mouse and copying via your terminal emulator.
    – D. Ben Knoble
    Commented Nov 11, 2020 at 15:50

2 Answers 2


Those are trailing whitespaces highlighted as error.

Most probably they are from vim-polyglot plugin:


To "fix" it:

  1. Either remove those spaces from the file
  2. Or add let g:python_highlight_space_errors = 0 to your config.
  • Niice!! Solved it, thank you
    – Occhima
    Commented Nov 11, 2020 at 15:46
  • Waitigin for the 6 min so i can accept the answer
    – Occhima
    Commented Nov 11, 2020 at 15:46

Regarding copy-paste, in Linux adding,
set clipboard=unnamedplus

in init.vim makes neovim use the system's clipboard.

You could also try,
set clipboard=unnamed

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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