From c8a1be986f7e139154f432c8bb639fc7e35836d9 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 18 Nov 2021 17:46:42 +0300 Subject: [PATCH] Completely get rid of pylint --- vim/.vim/ftplugin/go/gogetdoc.vim | 2 +- vim/.vim/plugin/ggrep.vim | 1 - vim/.vim/plugin/grep.vim | 1 - vim/.vimrc | 4 ++-- vim/bin/qq | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/vim/.vim/ftplugin/go/gogetdoc.vim b/vim/.vim/ftplugin/go/gogetdoc.vim index 82496e5..eedec71 100644 --- a/vim/.vim/ftplugin/go/gogetdoc.vim +++ b/vim/.vim/ftplugin/go/gogetdoc.vim @@ -1,3 +1,3 @@ if exists("*go#getdoc#do") | finish | endif -let b:lint_status_func=function("go#getdoc#status") +let b:mein_status_func=function("go#getdoc#status") nmap :call go#getdoc#do() diff --git a/vim/.vim/plugin/ggrep.vim b/vim/.vim/plugin/ggrep.vim index 4c71b70..e2f43fb 100644 --- a/vim/.vim/plugin/ggrep.vim +++ b/vim/.vim/plugin/ggrep.vim @@ -4,7 +4,6 @@ function! s:Vmg(pattern) silent execute 'Ggrep "' . a:pattern . '"' copen redraw! - let g:pylint_disable=1 endfunction command! -nargs=* -complete=file Vmg call s:Vmg() diff --git a/vim/.vim/plugin/grep.vim b/vim/.vim/plugin/grep.vim index 03903d7..140f8fc 100644 --- a/vim/.vim/plugin/grep.vim +++ b/vim/.vim/plugin/grep.vim @@ -5,7 +5,6 @@ function! s:Vim(pattern) execute "silent grep \"" . a:pattern . "\"" copen redraw! - let g:pylint_disable=1 endfunction command! -nargs=* -complete=file Vim call s:Vim() diff --git a/vim/.vimrc b/vim/.vimrc index a9e89c7..47a2c07 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -73,7 +73,7 @@ highlight CursorColumn ctermfg=cyan ctermbg=red " }}} " Statusline {{{ -let LintStatus = {-> exists("b:lint_status_func") ? b:lint_status_func() : ""} +let MeinStatus = {-> exists("b:mein_status_func") ? b:mein_status_func() : ""} set laststatus=2 set statusline=%F\ %m%r%h%w%k set statusline+=%{len(getqflist())?'[Q]':''} @@ -84,7 +84,7 @@ set statusline+=%#DiffChange#%{strlen(&fenc)?&fenc:&enc}%{&bomb?'-bom':''}\ %{&f set statusline+=%#DiffAdd#%l/%L set statusline+=%#Todo#%c%V:0x%B set statusline+=%#Comment#%o -set statusline+=%#Error#%{LintStatus()} +set statusline+=%#Error#%{MeinStatus()} set statusline+=%*\ %P " }}} diff --git a/vim/bin/qq b/vim/bin/qq index 250645a..290f136 100755 --- a/vim/bin/qq +++ b/vim/bin/qq @@ -6,5 +6,5 @@ tmux save-buffer $tmp tmux delete-buffer perl -ne '/^([^:]+:\d+:.*[^\s])\s*$/ and print "$1\n"' < $tmp > $tmp.err rm $tmp -vim -c 'let g:pylint_disable=1' -c copen -q $tmp.err +vim -c copen -q $tmp.err rm $tmp.err -- 2.44.0