How can I clear the Vim interface from PyLint marks?

I configured python-mode to check manually. So I type :PyLint and validate my code by showing the QuickFix window and some markings on the side. Then I can close the QuickFix window by typing :only in another window or so, but how can I clear the side marks?

+4
source share
2 answers

The plugin uses signs to display pile errors. If you never want to see them

 let g:pymode_lint_signs = 0 

disables them.

If you want to clear them, AFAICT there is no interface in the plugin for this. (You can request a raise.) But what should work is to clear all the signs of the current buffer:

 :sign unplace * buffer=<Cr>=bufnr('')<CR> 

or

 :execute 'sign unplace * buffer=' . bufnr('') 
+5
source

PyLint marks are produced with marks. ( :h :sign )

you can use

 :sign unplace * 

to delete all characters in all buffers. This will only be a problem if you want some buffers to retain traits.

If you want to remove characters only in the current buffer, you can use the Ingo Karkat response display.

 nnoremap <leader>s :execute 'sign unplace * buffer=' . bufnr('')<CR> 

Take a look at :h :sign-unplace for other options.

+2
source

Source: https://habr.com/ru/post/1494766/


All Articles