X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fpack%2Fstargrave%2Fstart%2Fpy-pep8%2Fautoload%2Fpython%2Fpep8.vim;h=5075c35da2f89eaebbbb2bc857453ed90e1bd71a;hb=9cbfa59ca421fac5422cbf0c2c52f48f8f2adb4c;hp=389e2ec93fd6595453c180231a93699fb59afac9;hpb=e21853080f5005ad6c6b548146d339abd197f28e;p=dotfiles.git diff --git a/vim/.vim/pack/stargrave/start/py-pep8/autoload/python/pep8.vim b/vim/.vim/pack/stargrave/start/py-pep8/autoload/python/pep8.vim index 389e2ec..5075c35 100644 --- a/vim/.vim/pack/stargrave/start/py-pep8/autoload/python/pep8.vim +++ b/vim/.vim/pack/stargrave/start/py-pep8/autoload/python/pep8.vim @@ -1,18 +1,21 @@ -" PEP8 caller -" Maintainer: Sergey Matveev -" License: GNU General Public License version 3 of the License or later -" -" Call pycodestyle utility and fill quickfix window with its results. +vim9script -function! python#pep8#do() abort +# PEP8 caller +# Maintainer: Sergey Matveev +# License: GNU General Public License version 3 of the License or later +# +# Call pycodestyle utility and fill quickfix window with its results. + +export def Do() set makeprg=PATH=$PATH\ pycodestyle\ --select=E,W\ % silent make sign unplace * - let l:id = 1 + var _id = 1 for item in getqflist() - execute(':sign place '.l:id.' name=P8 line='.l:item.lnum.' buffer='.l:item.bufnr) - let l:id = l:id + 2 + execute(":sign place " .. _id .. " name=P8 line=" .. item.lnum .. + " buffer=" .. item.bufnr) + _id = _id + 2 endfor redraw! copen -endfunction +enddef