diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index 746e748..efc21f1 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -14,7 +14,7 @@ function! s:Preserve(command) endfunction function! s:AddFocusTag() - call s:Preserve("normal! ? do\C, :focus do\") + call s:Preserve("normal! ?\\(^\\s*\\(expect\\|before\\|after\\|let\\).*\\)\\@C, :focus do\") endfunction function! s:RemoveAllFocusTags()