Re: Why the substitute in the selection only substitute the first letter in the selection in my vimscript?

2017-01-29 Thread Zhe Lee
On Friday, January 27, 2017 at 9:17:06 PM UTC+8, Christian Brabandt wrote: > Hi Zhe! > > On Fr, 27 Jan 2017, Zhe Lee wrote: > > > Why the substitute in the selection only substitute the first letter in the > > selection? > > > > The \%V option works fine when I just use the command line to

Re: Why the substitute in the selection only substitute the first letter in the selection in my vimscript?

2017-01-27 Thread Christian Brabandt
Hi Zhe! On Fr, 27 Jan 2017, Zhe Lee wrote: > Why the substitute in the selection only substitute the first letter in the > selection? > > The \%V option works fine when I just use the command line to exec it. > > But it seems not work very well when I use it in the vimscript. > > vnoremap

Why the substitute in the selection only substitute the first letter in the selection in my vimscript?

2017-01-27 Thread Zhe Lee
Why the substitute in the selection only substitute the first letter in the selection? The \%V option works fine when I just use the command line to exec it. But it seems not work very well when I use it in the vimscript. vnoremap dfc :call DragonflyCmdProcess(1) function!