Permalink
Browse files

add options to pep8 plugin; change keybinding for yanking the current…

… filename to gyf
  • Loading branch information...
jceb committed May 4, 2012
1 parent 75d65ae commit 11458f114bd7f0380d558e72cfa99738e111dcaa
Showing with 24 additions and 1 deletion.
  1. +1 −1 config/keybindings.vim
  2. +4 −0 config/plugin_config.vim
  3. +18 −0 patches/pep8_add_options.patch
  4. +1 −0 patches/series
View
@@ -8,7 +8,7 @@ nnoremap gpc "+p
vnoremap gyc "+y
" copy file name to clipboard
-nnoremap yfn :let @"=expand('%:p')<CR>:let @*=expand('%:p')<CR>:echo "Copied filname to clipboard."
+nnoremap gyf :let @"=expand('%:p')<CR>:let @*=expand('%:p')<CR>:echo "Copied filname to clipboard."<CR>
" replace within the visual selection
vnoremap gvs :<BS><BS><BS><BS><BS>%s/\%V
View
@@ -134,6 +134,10 @@ let g:org_todo_keyword_faces = [['TODO', [':foreground red', ':background NONE',
\ ['DONE', [':foreground darkgreen', ':background NONE', ':decoration bold']],
\ ['QA', [':foreground darkyellow', ':background NONE', ':decoration bold']]]
+" ------------------------------------------------------------
+" PEP8:
+let g:pep8_options = '--ignore=W191,E501'
+
" ------------------------------------------------------------
" Pydoc:
if exists(":Pydoc") != 2
@@ -0,0 +1,18 @@
+Index: .vim/bundle/pep8/ftplugin/python_pep8.vim
+===================================================================
+--- .vim.orig/bundle/pep8/ftplugin/python_pep8.vim 2012-05-04 15:25:26.000000000 +0200
++++ .vim/bundle/pep8/ftplugin/python_pep8.vim 2012-05-04 15:25:33.000000000 +0200
+@@ -33,8 +33,12 @@
+ endif
+
+ " perform the grep itself
++ let options=""
++ if exists('g:pep8_options')
++ let options=g:pep8_options
++ endif
+ let &grepformat="%f:%l:%c: %m"
+- let &grepprg=s:pep8_cmd . " --repeat"
++ let &grepprg=s:pep8_cmd . " " . options . " --repeat"
+ silent! grep! %
+
+ " restore grep settings
View
@@ -17,3 +17,4 @@ gnupg_disable_warning.patch
buffet_improvements.patch
powerline_my_buffer_theme.patch
starrange_restore_position.patch
+pep8_add_options.patch

0 comments on commit 11458f1

Please sign in to comment.