Re:Ivo – a reimagined Unix terminal system
by wollw on Thursday December 01, 2011 @06:56PM
(#3302026)
You also execute a selection with ":w !sh". For example, if I have a line that says 'echo "Hello, world!"' I can select the line with Shift-V and then ":w !sh" to execute the line in the shell. Works with other interpreters too so ":w !perl" would execute it in perl. The vim command should show "'<,'>" between the ':' and 'w'. Using it without selecting something first sends the whole buffer to the interpreter.
Re:Ivo – a reimagined Unix terminal system
by JadeNB on Thursday December 01, 2011 @09:37PM
(#3302427)
> The vim command should show "'<,'>" between the ':' and 'w'.
I've always wondered about this; I sometimes get it (but don't know how to reproduce it) when trying to navigate. What does it mean?
Re:Ivo – a reimagined Unix terminal system
by wollw on Thursday December 01, 2011 @10:47PM
(#3302598)
It's a motion command that means from the beginning of the selected area to the end. It's really two different commands ("'<" and "'>") and there is a good description of them in the vim help (":help '<" will bring you there).
Yup, via `!` and `r!`. See, for example, http://www.oualline.com/vim-cook.html#format_para.