Lurker News

Comments (250) 30 threads

Show all comments

Showing thread 1 of 30

FranOntanaya5 replies#
I'm afraid they'll manage to launch vim and will never be able to get out.
creshal3 replies#
Or emacs.

Or vim inside emacs' terminal emulator.

oneeyedpigeon#
Orders of magnitude more likely that vi will get launched than emacs :-)
LukeShu1 reply#
Unfortunately, Vi is on the Arch install disc, but Emacs isn't (unless it's changed very recently). Though they of course could install it.
FreeFull#
The arch install disk also has vim. The base install of arch doesn't include vim, but does include vi.
krylon#
> 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...

eloy5 replies#
They should read the book "Popular Unix text editors and how to exit them"
fisherjeff#
Thank you both for inciting a fascinating combination of uncontrollable laughter and existential dread
scarmig4 replies#

  quit
  ?
  exit
  ?
  end
  ?
  done
  ?
  bye
  ?
  quit!
  ?
  ^X
  ?
  ^C
  ?
  ^C
  ?
  help
  ?
  ?
  ?
  ^Z
  $ killall ed
  $ vi
api4 replies#
You mean that isn't how to exit 'ed'?

Continue this thread — 4 replies

ChrisArgyle#
^D^D should do it
eru3 replies#
Ctrl-z works universally, doesn't it?
ciupicri4 replies#
Not really. Some programs disable it including vim (at least on some setups).

Continue this thread — 4 replies

emergie2 replies#
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]
Anderkent2 replies#
Well, it might still run but it lets you out of the editor, which is the goal here. You can just kill -9 it afterwards.

Continue this thread — 2 replies

jokr0043 replies#
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.
dllthomas#
With bg, it is likely to suspend itself again by attempting to read from the terminal (which a text editor is likely to do basically all the time).
waterhouse1 reply#
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.
FreeFull#
Many curses programs (for example vim) intercept ^Z to set the terminal back into a more normal mode and then pause.
Touche1 reply#
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?

Continue this thread — 1 reply

jlhim10 replies#
this has got to be trolling. right? right?! i'm so confused.

Continue this thread — 10 replies

Roodgorf2 replies#
I was much too easily convinced that this could be a real book.
Natanael_L2 replies#
We can make it one! Who'll launch the kickstarter?

Continue this thread — 2 replies

Keyframe#
Accompanied by coffe table book 'Greatest screenshots of ruby in Sublime with dark themes'
DonHopkins1 reply#
Not to be confused with the book "Popular Unix text editors and how to nest them".
techdragon1 reply#
Which is a book inside a smaller book which is inside a smaller book ...

Continue this thread — 1 reply

mgr863 replies#
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.
Gonzih1 reply#
vi is built-in in arch installation. so...
valarauca14 replies#
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/

Continue this thread — 4 replies

Continue this thread — 2 more replies

Continue this thread — 2 more replies