Created
          April 30, 2013 10:52 
        
      - 
      
- 
        Save nekoya/5487981 to your computer and use it in GitHub Desktop. 
    vim-flake8でE501のチェックをトグルでON/OFF
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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