← Back to context

Comment by gnubison

6 years ago

I don't use it that often (I just open up another terminal), but you can also use ^Z to put vi in the background. It would be more useful if I didn't always forget and open up a new vi which would refuse to write to the file :)

I honestly do both. When I'm running something I want the output from (some to yank), I'll run in a buffer.

If doing file manipulation, CLI, etc. etc. I'll ctrl-z out.

I do the opposite of you pretty often too, always trying to `fg` a non-existent vim

  • Hmmm. I hadn't thought about being able to yank output from a command... That's a really good point. (Honestly I would probably use 'xsel -bi' and ':r !xsel -bo', but that's pretty ugly.)