(no title)
stirfrykitty | 6 years ago
Back in the day when I was a Unix admin, we often worked in full screen terminals and when editing a config file didn't like having to close the vim instance to go look at something, so learned about this little gem:
:sh (go back to shell and do your thing and leave vim running)
Ctrl-d to return to intact and running vim instance.
As an aside, if you decide to use nano to edit config files, make sure you use nano -w (no wrap), otherwise you may find yourself with a non-bootable OS instance.
Syssiphus|6 years ago
pselbert|6 years ago
[0]: https://www.destroyallsoftware.com/screencasts
TheGrassyKnoll|6 years ago
SEJeff|6 years ago
stirfrykitty|6 years ago
bch|6 years ago
In nvi (at least), one can also open a buffer and :script to run a shell inside vi and have all the yank/paste/navigation/all-the-things features of vi. Mind you need to i[nsert] or a[ppend] after the prompt to issue your commands.
miguelmota|6 years ago
magduf|6 years ago
passthejoe|6 years ago
Zelphyr|6 years ago
unknown|6 years ago
[deleted]