17
votes
9answers
984 views

Bash commands inside vi

Is it possible to type a bash command inside vi and get the stdout? I find it often tedious to close and reopen vi just because I want to look something up in the shell.
15
votes
6answers
999 views

Using VI to edit shell commands in UNIX

I used to have a co-worker who was really good at UNIX. He showed me how to use Vi to edit my shell commands. He placed the command in a file that ran every time I logged in. Since then, I've ...
5
votes
2answers
755 views

Pasting from clipboard to vi-enabled zsh or bash shell

I'd like to be able to paste from the system clipboard (or text selection) into my "vi-like" shell prompt using the keyboard. I normally use zsh and sometimes bash. In both cases, I have the shell set ...