X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/afc396487bcd8d9895613a50e4ca61114743c5fe..0bb2f696f2e934c5549a127a989fe7984275df67:/ftplugin/python_flake8.vim?ds=sidebyside diff --git a/ftplugin/python_flake8.vim b/ftplugin/python_flake8.vim index febb9e7..e3b3c61 100644 --- a/ftplugin/python_flake8.vim +++ b/ftplugin/python_flake8.vim @@ -1,7 +1,7 @@ " " Python filetype plugin for running flake8 " Language: Python (ft=python) -" Maintainer: Vincent Driessen +" Maintainer: Vincent Driessen " Version: Vim 7 (may work with lower Vim versions, but not tested) " URL: http://github.com/nvie/vim-flake8 " @@ -22,6 +22,11 @@ if exists("g:flake8_ignore") let s:flake8_ignores=" --ignore=".g:flake8_ignore endif +let s:flake8_max_line_length="" +if exists("g:flake8_max_line_length") + let s:flake8_max_line_length=" --max-line-length=".g:flake8_max_line_length +endif + if !exists("*Flake8()") function Flake8() if !executable(s:flake8_cmd) @@ -43,7 +48,7 @@ if !exists("*Flake8()") " perform the grep itself let &grepformat="%f:%l:%c: %m\,%f:%l: %m" - let &grepprg=s:flake8_cmd.s:flake8_ignores + let &grepprg=s:flake8_cmd.s:flake8_ignores.s:flake8_max_line_length silent! grep! % " restore grep settings