Permalink
Browse files

Merge pull request #8 from mislav/map-local

make remapping of `>` in insert mode local to buffer
  • Loading branch information...
2 parents b0dbf8e + e72ca6d commit e91d8228376ee257d1d69658db9ae64c0203ee25 @rodjek rodjek committed Aug 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 after/ftplugin/puppet.vim
View
2 after/ftplugin/puppet.vim
@@ -1,4 +1,4 @@
-inoremap <silent> > ><Esc>:call <SID>puppetalign()<CR>A
+inoremap <buffer> <silent> > ><Esc>:call <SID>puppetalign()<CR>A
function! s:puppetalign()
let p = '^\s*\w+\s*=>.*$'
let lineContainsHashrocket = getline('.') =~# '^\s*\w+\s*=>'

0 comments on commit e91d822

Please sign in to comment.