I've been there, by accident, two or three times. The first time was really scary, since I did not know vi, yet, and did not know how to exit it or what in the world was going on...
it doesn't, ctrl-z only suspends process and switches to backgroud - the thing is still alive
try ctrl-z and then type bg command - you will see a list, you can resume with fg [number]
Ctrl-z by itself doesn't actually switch the process to run in the background, it stops the process. Running 'bg' is what starts the process back up running in the background, 'fg', like you said, resumes the process in the foreground and 'jobs' is the command you can run to see a list of processes that are running.
Since the question was "Ctrl-z works universally", I feel obliged to point out that ctrl-z sends SIGTSTP, which can be blocked--not to be confused with SIGSTOP, which cannot be blocked. I don't know of any program that does intercept SIGTSTP (except a test program I wrote that tries to print the name of any signal it receives), and I suspect that "polite" interception would be to release a few resources and then accept being paused--but, in theory, a program could ignore it.
This is probably a stupid question, didn't know about bg and fg before. But after playing around with it, it feels pretty amazing, why even use screen/tmux when you have these?
It's been awhile since a fresh install but is it ViM. is Vi still around? I just seem to recall some things not working right. Such as not being able to ZZ or ZQ out of a file.
Vi is everywhere. Its part of the POSIX standard and comes out of the box (in one flavor or another) with every Linux Distro, OSX, HP-UX, AIX, Solaris, Darwin, FreeBSD, OpenBSD, and DragonFlyBSD.
ViM is just Vi iMproved. They share most their keybinds but VIM has the whole plugin architecture thing. This is a big sticking point for a lot of VIM users [1]. If you ever end up on a Unix box that doesn't have VIM, you can always fall back on Vi. [1]: /users/religious fanatics/
Comments (250) 30 threads
Show all comments
Showing thread 1 of 30
Or vim inside emacs' terminal emulator.
I've been there, by accident, two or three times.
The first time was really scary, since I did not know vi, yet, and did not know how to exit it or what in the world was going on...
https://www.youtube.com/watch?v=AiM5zEEI_Jo
Continue this thread — 4 replies
Continue this thread — 4 replies
Continue this thread — 2 replies
Continue this thread — 1 reply
Continue this thread — 10 replies
Continue this thread — 2 replies
Continue this thread — 1 reply
ViM is just Vi iMproved. They share most their keybinds but VIM has the whole plugin architecture thing.
This is a big sticking point for a lot of VIM users [1]. If you ever end up on a Unix box that doesn't have VIM, you can always fall back on Vi.
[1]: /users/religious fanatics/
Continue this thread — 4 replies
Continue this thread — 2 more replies
Continue this thread — 2 more replies