From: Nic West Date: Sat, 13 Dec 2014 11:00:40 +0000 (+0000) Subject: remove commmand settings from config options X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/e39edb5a32f6468b134df24f45cc1a01d1662238?ds=sidebyside;hp=--cc remove commmand settings from config options --- e39edb5a32f6468b134df24f45cc1a01d1662238 diff --git a/README.mdown b/README.mdown index 34e2872..2f8c5b6 100644 --- a/README.mdown +++ b/README.mdown @@ -39,21 +39,9 @@ the `` key if so. For example, to remap it to `` instead, use: autocmd FileType python map :call Flake8() -To add builtins, in your .vimrc: +For flake8 configuration options please consult the following page: - let g:flake8_builtins="_,apply" - -To ignore errors, in your .vimrc: - - let g:flake8_ignore="E501,W293" - -If you want to change the max line length for PEP8: - - let g:flake8_max_line_length=99 - -To set the maximum [McCabe complexity](https://en.wikipedia.org/wiki/Cyclomatic_complexity) before a warning is issued: - - let g:flake8_max_complexity=10 +http://flake8.readthedocs.org/en/latest/config.html To customize the location of your flake8 binary, set `g:flake8_cmd`: diff --git a/autoload/flake8.vim b/autoload/flake8.vim index de9633e..b7200e6 100644 --- a/autoload/flake8.vim +++ b/autoload/flake8.vim @@ -46,11 +46,6 @@ function! s:Setup() " {{{ " flake8 command call s:DeclareOption('flake8_cmd', '', '"flake8"') - " flake8 stuff - call s:DeclareOption('flake8_builtins', ' --builtins=', '') - call s:DeclareOption('flake8_ignore', ' --ignore=', '') - call s:DeclareOption('flake8_max_line_length', ' --max-line-length=', '') - call s:DeclareOption('flake8_max_complexity', ' --max-complexity=', '') " quickfix call s:DeclareOption('flake8_quickfix_location', '', '"belowright"') call s:DeclareOption('flake8_show_quickfix', '', 1) @@ -116,7 +111,7 @@ function! s:Flake8() " {{{ " perform the grep itself let &grepformat="%f:%l:%c: %m\,%f:%l: %m" - let &grepprg=s:flake8_cmd.s:flake8_builtins.s:flake8_ignore.s:flake8_max_line_length.s:flake8_max_complexity + let &grepprg=s:flake8_cmd silent! grep! "%" " restore grep settings