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 <leader>dfc :call DragonflyCmdProcess(1)<CR>

function! DragonflyCmdProcess(visual)
    if a:visual
        normal! gv
        " execute "s/\\%V./&,/g"
        execute "'<,'>s/\\%Ve/x/g"
    else
endfunction

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to