Skip to content
This repository
Browse code

* restrict mappings to local buffer

Signed-off-by: Kevin Watters <kevinwatters@gmail.com>
  • Loading branch information...
commit 6ec1fbbce32876e315b370409ca55c97d232d125 1 parent 8c00965
mnick authored May 04, 2009 kevinw committed May 04, 2009

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  pyflakes.vim
8  pyflakes.vim
@@ -102,10 +102,10 @@ endif
102 102
 " Hook common text manipulation commands to update PyFlakes
103 103
 "   TODO: is there a more general "text op" autocommand we could register
104 104
 "   for here?
105  
-noremap <silent> dd dd:PyflakesUpdate<CR>
106  
-noremap <silent> dw dw:PyflakesUpdate<CR>
107  
-noremap <silent> u u:PyflakesUpdate<CR>
108  
-noremap <silent> <C-R> <C-R>:PyflakesUpdate<CR>
  105
+noremap <buffer><silent> dd dd:PyflakesUpdate<CR>
  106
+noremap <buffer><silent> dw dw:PyflakesUpdate<CR>
  107
+noremap <buffer><silent> u u:PyflakesUpdate<CR>
  108
+noremap <buffer><silent> <C-R> <C-R>:PyflakesUpdate<CR>
109 109
 
110 110
 " WideMsg() prints [long] message up to (&columns-1) length
111 111
 " guaranteed without "Press Enter" prompt.

0 notes on commit 6ec1fbb

Please sign in to comment.
Something went wrong with that request. Please try again.