@@ -108,27 +108,27 @@ function! PhpDocAll() " {{{
108108call s: PhpEchoError (g: vim_php_refactoring_phpdoc .' () vim function doesn'' t exists.' )
109109return
110110endif
111- normal magg
111+ normal ! magg
112112while search (s: php_regex_class_line ,' eW' ) > 0
113113call s: PhpDocument ()
114114endwhile
115- normal gg
115+ normal ! gg
116116while search (s: php_regex_member_line ,' eW' ) > 0
117117call s: PhpDocument ()
118118endwhile
119- normal gg
119+ normal ! gg
120120while search (s: php_regex_func_line ,' eW' ) > 0
121121call s: PhpDocument ()
122122endwhile
123- normal `a
123+ normal ! `a
124124endfunction
125125" }}}
126126
127127function ! PhpCreateGetters ()" {{{
128- normal gg
128+ normal ! gg
129129let l: properties= []
130130while search (s: php_regex_member_line ,' eW' ) > 0
131- normal w " xye
131+ normal ! w " xye
132132call add (l: properties ,@x )
133133endwhile
134134for l: propertyin l: properties
@@ -147,10 +147,10 @@ endfunction
147147" }}}
148148
149149function ! PhpCreateSettersAndGetters ()" {{{
150- normal gg
150+ normal ! gg
151151let l: properties= []
152152while search (s: php_regex_member_line ,' eW' ) > 0
153- normal w " xye
153+ normal ! w " xye
154154call add (l: properties ,@x )
155155endwhile
156156for l: propertyin l: properties
@@ -220,7 +220,7 @@ endfunction
220220" }}}
221221
222222function ! PhpExtractUse ()" {{{
223- normal mr
223+ normal ! mr
224224let l: fqcn= s: PhpGetFQCNUnderCursor ()
225225let l: use= s: PhpGetDefaultUse (l: fqcn )
226226let l: defaultUse= l: use
@@ -235,7 +235,7 @@ function! PhpExtractUse() " {{{
235235else
236236call s: PhpInsertUseStatement (l: fqcn )
237237endif
238- normal `r
238+ normal ! `r
239239endfunction
240240" }}}
241241
@@ -245,15 +245,15 @@ function! PhpExtractConst() " {{{
245245return
246246endif
247247let l: name= toupper (inputdialog (" Name of new const:" ))
248- normal mrgv" xy
248+ normal ! mrgv" xy
249249call s: PhpReplaceInCurrentClass (@x ,' self::' .l: name )
250250call s: PhpInsertConst (l: name ,@x )
251- normal `r
251+ normal ! `r
252252endfunction
253253" }}}
254254
255255function ! PhpExtractClassProperty ()" {{{
256- normal mr
256+ normal ! mr
257257let l: name= substitute (expand (' <cword>' ),' ^\$*' ,' ' ,' ' )
258258call s: PhpReplaceInCurrentFunction (' $' .l: name .' \>' ,' $this->' .l: name )
259259if g: vim_php_refactoring_auto_validate_visibility== 0
@@ -265,7 +265,7 @@ function! PhpExtractClassProperty() " {{{
265265let l: visibility= g: vim_php_refactoring_default_property_visibility
266266endif
267267call s: PhpInsertProperty (l: name ,l: visibility )
268- normal `r
268+ normal ! `r
269269endfunction
270270" }}}
271271
@@ -283,12 +283,12 @@ function! PhpExtractMethod() range " {{{
283283else
284284let l: visibility= g: vim_php_refactoring_default_method_visibility
285285endif
286- normal gv" xdmr
286+ normal ! gv" xdmr
287287let l: middleLine= line (' .' )
288288call search (s: php_regex_func_line ,' bW' )
289289let l: startLine= line (' .' )
290290call search (' (' ,' W' )
291- normal " pyi(
291+ normal ! " pyi(
292292call search (' {' ,' W' )
293293exec " normal! %"
294294let l: stopLine= line (' .' )
@@ -310,7 +310,7 @@ function! PhpExtractMethod() range " {{{
310310call add (l: output ,l: var )
311311endif
312312endfor
313- normal `r
313+ normal ! `r
314314if len (l: output )== 0
315315exec " normal! O$this->" .l: name ." (" .join (l: parameters ," ," ) ." );\<ESC> k=3="
316316let l: return= ' '
@@ -322,7 +322,7 @@ function! PhpExtractMethod() range " {{{
322322let l: return= " return array(" .join (l: output ," ," ) ." );\<CR> "
323323endif
324324call s: PhpInsertMethod (l: visibility ,l: name ,l: parametersSignature ,@x .l: return )
325- normal `r
325+ normal ! `r
326326endfunction
327327" }}}
328328
@@ -341,7 +341,7 @@ endfunction
341341" }}}
342342
343343function ! PhpDetectUnusedUseStatements ()" {{{
344- normal mrgg
344+ normal ! mrgg
345345while search (' ^use' ,' W' )
346346let l: startLine= line (' .' )
347347call search (' ;\_s*' ,' eW' )
@@ -355,7 +355,7 @@ function! PhpDetectUnusedUseStatements() " {{{
355355endif
356356endfor
357357endwhile
358- normal `r
358+ normal ! `r
359359endfunction
360360" }}}
361361
@@ -390,34 +390,34 @@ endfunction
390390
391391function ! s: PhpDocument ()" {{{
392392if match (getline (line (' .' )-1 )," */" )== -1
393- normal mr
393+ normal ! mr
394394exec " call" .g: vim_php_refactoring_phpdoc .' ()'
395- normal `r
395+ normal ! `r
396396endif
397397endfunction
398398" }}}
399399
400400function ! s: PhpReplaceInCurrentFunction (search , replace)" {{{
401- normal mr
401+ normal ! mr
402402call search (s: php_regex_func_line ,' bW' )
403403let l: startLine= line (' .' )
404404call search (' {' ,' W' )
405405exec " normal! %"
406406let l: stopLine= line (' .' )
407407exec l: startLine .' ,' .l: stopLine .' :s/' .a: search .' /' .a: replace .' /ge'
408- normal `r
408+ normal ! `r
409409endfunction
410410" }}}
411411
412412function ! s: PhpReplaceInCurrentClass (search , replace)" {{{
413- normal mr
413+ normal ! mr
414414call search (s: php_regex_class_line ,' beW' )
415415call search (' {' ,' W' )
416416let l: startLine= line (' .' )
417417exec " normal! %"
418418let l: stopLine= line (' .' )
419419exec l: startLine .' ,' .l: stopLine .' :s/' .a: search .' /' .a: replace .' /ge'
420- normal `r
420+ normal ! `r
421421endfunction
422422" }}}
423423
@@ -447,7 +447,7 @@ function! s:PhpInsertConst(name, value) " {{{
447447else
448448call append (line (' .' ),' const' .a: name .' =' .a: value .' ;' )
449449endif
450- normal j = 1 =
450+ normal ! j = 1 =
451451endfunction
452452" }}}
453453
@@ -475,7 +475,7 @@ function! s:PhpInsertPropertyExtended(name, visibility, insertLine, emptyLineBef
475475call append (a: insertLine+ a: emptyLineBefore+ 1 ,' * @var mixed' )
476476call append (a: insertLine+ a: emptyLineBefore+ 2 ,' */' )
477477call append (a: insertLine+ a: emptyLineBefore+ 3 ,a: visibility ." $" .a: name .' ;' )
478- normal j = 5 =
478+ normal ! j = 5 =
479479endfunction
480480" }}}
481481
@@ -515,25 +515,25 @@ endfunction
515515" }}}
516516
517517function ! s: PhpSearchInCurrentFunction (pattern, flags)" {{{
518- normal mr
518+ normal ! mr
519519call search (s: php_regex_func_line ,' bW' )
520520let l: startLine= line (' .' )
521521call search (' {' ,' W' )
522522exec " normal! %"
523523let l: stopLine= line (' .' )
524- normal `r
524+ normal ! `r
525525return s: PhpSearchInRange (a: pattern ,a: flags ,l: startLine ,l: stopLine )
526526endfunction
527527" }}}
528528
529529function ! s: PhpSearchInCurrentClass (pattern, flags)" {{{
530- normal mr
530+ normal ! mr
531531call search (s: php_regex_class_line ,' beW' )
532532call search (' {' ,' W' )
533533let l: startLine= line (' .' )
534534exec " normal! %"
535535let l: stopLine= line (' .' )
536- normal `r
536+ normal ! `r
537537return s: PhpSearchInRange (a: pattern ,a: flags ,l: startLine ,l: stopLine )
538538endfunction
539539" }}}