Skip to content

Commit

Permalink
Only run plugin when filetype is ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
jgdavey committed Dec 18, 2010
1 parent 832db3e commit 7dc3332
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/blockle.vim
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function! s:ConvertDoEndToBrackets()
endfunction

function! s:ToggleDoEndOrBrackets()
if &ft!='ruby' | return | endif
let char = getline('.')[col('.')-1]
if char =~ '[{}]'
call <SID>ConvertBracketsToDoEnd()
Expand Down

0 comments on commit 7dc3332

Please sign in to comment.