" 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. sign define P8 text=P8 texthl=Error function! s:pep8() set makeprg=PATH=$PATH\ pycodestyle\ --select=E,W\ % silent make sign unplace * let l: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 endfor redraw! copen endfunction map :call pep8()