Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* restrict mappings to local buffer

Signed-off-by: Kevin Watters <kevinwatters@gmail.com>
  • Loading branch information...
commit 6ec1fbbce32876e315b370409ca55c97d232d125 1 parent 8c00965
@mnick mnick authored committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 pyflakes.vim
View
8 pyflakes.vim
@@ -102,10 +102,10 @@ endif
" Hook common text manipulation commands to update PyFlakes
" TODO: is there a more general "text op" autocommand we could register
" for here?
-noremap <silent> dd dd:PyflakesUpdate<CR>
-noremap <silent> dw dw:PyflakesUpdate<CR>
-noremap <silent> u u:PyflakesUpdate<CR>
-noremap <silent> <C-R> <C-R>:PyflakesUpdate<CR>
+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>
" WideMsg() prints [long] message up to (&columns-1) length
" guaranteed without "Press Enter" prompt.
Please sign in to comment.
Something went wrong with that request. Please try again.