From 52a3fbc589120ba3028c1bf5b246927c681ed95d Mon Sep 17 00:00:00 2001 From: nikola Date: Wed, 4 May 2016 14:54:03 +0200 Subject: [PATCH] respect before, after and let in AddFocusTag --- ftplugin/ruby.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()