Skip to content

Instantly share code, notes, and snippets.

@nekoya
Created April 30, 2013 10:52
Show Gist options
  • Save nekoya/5487981 to your computer and use it in GitHub Desktop.
Save nekoya/5487981 to your computer and use it in GitHub Desktop.
vim-flake8でE501のチェックをトグルでON/OFF
function! Flake8IgnoreToggle()
let rule = 'E501'
if g:flake8_ignore == rule
echo 'flake8 check E501'
let g:flake8_ignore = ''
else
echo 'flake8 ignore E501'
let g:flake8_ignore = rule
endif
endfunction
nnoremap <Space>5 :<C-u>call Flake8IgnoreToggle()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment