ZSH: how can I run Vim-style substitute command in command line?

Posted by HH on Stack Overflow See other posts from Stack Overflow or by HH
Published on 2010-04-15T16:38:29Z Indexed on 2010/04/15 16:43 UTC
Read the original article Hit count: 139

Filed under:
|
|

I forgot the array syntax while on Zsh-commandline:

$ hello=[1,2,3,4] %ERR: 

I want to fix the problem by substitution. In Vim, I would do :.s@,@ @g. So how can I edit the current line, or let call it a current buffer, by running a command on it?

© Stack Overflow or respective owner

Related posts about zsh

Related posts about vim