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.
mcguire#
If you have good reflexes, you can type "^Z" right after "kill -9", before the syscall to send the signal is executed.

Legend has it that, if you do, you bring on the Singularity immediately.

dllthomas#
There is no reason for -9 here - all the major unix editors happily exit on SIGTERM.
jokr0045 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.

Continue this thread — 5 replies

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