Permalink
Browse files

make remapping of `>` in insert mode local to buffer

Otherwise this mapping affects all buffers loaded after the puppet one,
regardless of type.
  • Loading branch information...
1 parent b0dbf8e commit e72ca6d37a5caf17eb40ff391c5903b9d506c6ce @mislav mislav 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 e72ca6d

Please sign in to comment.