running a shell from vi

  • August 28, 2012
  • vi

sometimes you are editing a file and need to quickly do something back on the command line. the usual practice would be to save the file, exit to the shell, do your stuff, then reopen the file again…

instead, when in vi, do :sh

this will send you back to your command line, where you can do your stuff, and use ctrl-d to eof and get back to vi.

just a mini time saver. and we all like those!




No Comments


No comments yet.



Leave a Reply

Your email address will not be published. Required fields are marked *