I use ":sh" for this purpose, but it has the problems that:
- you get a new shell, so your history is lost
- if you have a "stack" of vim's you have to return to them in stack order
- I develop a habit of typing Ctrl-d when I want to get back to vim, which means I accidentally log out of SSH sessions all the time if I actually haven't still got vim open
I think getting in the habit of using Ctrl-z instead would be a big improvement.
Yes, these are good points but I've found the benefit outweighs the annoyance. fzf for a history searcher really helps. BUT not being able to 'up arrow' the previous command is annoying at times.
So far it's a 6/10 Slightly better then not doing it.
=)
- you get a new shell, so your history is lost
- if you have a "stack" of vim's you have to return to them in stack order
- I develop a habit of typing Ctrl-d when I want to get back to vim, which means I accidentally log out of SSH sessions all the time if I actually haven't still got vim open
I think getting in the habit of using Ctrl-z instead would be a big improvement.