top | item 17423100 (no title) thedjinn | 7 years ago Not really a trick of Vim itself, but when using Vim from the terminal I find ctrl-z very useful to background Vim, type in a few shell commands for git or whatever and then use "fg" to hop back into Vim. discuss order hn newest hiyer|7 years ago vim 8 and neovim have pretty functional in-built terminals (:term). You can try that if you're using one of these. thedjinn|7 years ago That's more keystrokes. ;) load replies (1) vram22|7 years ago Only a few more keystrokes is::sh ENTERor for more control over which shell, or to run a shell with any arguments, or even to run any command w/ or w/o args::!bash:!bash -o vi:!bash some_script.sh:!some_command some argsand after any of those, just press Ctrl-D or type exit ENTER to return to the vim session.Very fast and easy to do. I use it all the time.
hiyer|7 years ago vim 8 and neovim have pretty functional in-built terminals (:term). You can try that if you're using one of these. thedjinn|7 years ago That's more keystrokes. ;) load replies (1)
vram22|7 years ago Only a few more keystrokes is::sh ENTERor for more control over which shell, or to run a shell with any arguments, or even to run any command w/ or w/o args::!bash:!bash -o vi:!bash some_script.sh:!some_command some argsand after any of those, just press Ctrl-D or type exit ENTER to return to the vim session.Very fast and easy to do. I use it all the time.
hiyer|7 years ago
thedjinn|7 years ago
vram22|7 years ago
:sh ENTER
or for more control over which shell, or to run a shell with any arguments, or even to run any command w/ or w/o args:
:!bash
:!bash -o vi
:!bash some_script.sh
:!some_command some args
and after any of those, just press Ctrl-D or type exit ENTER to return to the vim session.
Very fast and easy to do. I use it all the time.