> If I use these command in bash shell:
> echo 'abc' | sed 's/b*/1/g'
> It would display:
> 1a1c1
>
>
> But when I try it in VIM:
> (open a document, turn into edit mode and simply type 'abc', and then
> turn into command mode)
> :s/b*/1/g
> it would display:
> 1a1c
The obvious workaround is
:.!sed 's/b*/1/g'
Not very elegant but it works!
perl returns '1a11c1', BTW!
/bpj
--
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
No comments:
Post a Comment