Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


get rid of one second delay when deleting text in visual mode #40

wants to merge 2 commits into from

1 participant


this delay is clearly unintended, rather annoying, and easy to fix, see issue #24

Lev Maximov added some commits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 11, 2011
  1. fix for issue #24

    Lev Maximov authored
  2. ignore lines ending with double hash (##)

    Lev Maximov authored
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 4 deletions.
  1. +6 −4 ftplugin/python/pyflakes.vim
10 ftplugin/python/pyflakes.vim
@@ -119,6 +119,7 @@ def check(buffer):
checker._MAGIC_GLOBALS = old_globals
+ w.messages = filter(lambda m: not buffer[m.lineno-1].endswith('##'), w.messages)
w.messages.sort(key = attrgetter('lineno'))
return w.messages
@@ -161,10 +162,11 @@ endif
" Hook common text manipulation commands to update PyFlakes
" TODO: is there a more general "text op" autocommand we could register
" for here?
-noremap <buffer><silent> dd dd:PyflakesUpdate<CR>
-noremap <buffer><silent> dw dw:PyflakesUpdate<CR>
-noremap <buffer><silent> u u:PyflakesUpdate<CR>
-noremap <buffer><silent> <C-R> <C-R>:PyflakesUpdate<CR>
+nnoremap <buffer><silent> dd dd:PyflakesUpdate<CR>
+nnoremap <buffer><silent> dw dw:PyflakesUpdate<CR>
+nnoremap <buffer><silent> u u:PyflakesUpdate<CR>
+nnoremap <buffer><silent> <C-R> <C-R>:PyflakesUpdate<CR>
+vnoremap <buffer><silent> d d:PyflakesUpdate<CR>
" WideMsg() prints [long] message up to (&columns-1) length
" guaranteed without "Press Enter" prompt.
Something went wrong with that request. Please try again.