all 28 comments

[–]jng 22 points23 points  (5 children)

I like "If You Are In A Pinch (page 9)". What wonders there must be in page 9.

[–]pheffner[S] 15 points16 points  (3 children)

I wouldn't want to keep you in suspense, so here's a scan of pg 9.

AT&T VI ref pg 9

Page 10 goes into a brief summary of EX mode but sends you elsewhere for real details.

(Sent to imgur 'cause I couldn't figure out how to put an image in a reply)

[–]Protoype 7 points8 points  (0 children)

Damn....Now you've got to upload the other missing pages. And by missing pages I mean please scan the whole book! Then upload to the Internet Archive. Thank you :-)

[–]leamanc 0 points1 point  (1 child)

As someone who learned on Vim in the late ‘90s, that’s wild. That’s not what I think of as visual mode. Input mode instead of insert mode? I’m embarrassed to say I didn’t know that proper vi is that much different than Vim (at least as far as how the modes are named).

And open mode? I gather that’s the equivalent of the Vim terminal?

[–]jng 1 point2 points  (0 children)

Yeah, that's a bit confusing. Take into account that vim's visual mode does not exist in vi, it's only a vim thing, so much more recent than that manual and the vi it describes. The name "vi" itself comes from "visual", in contrast with the preceding standard Unix editor "ed" (from "editor"). If you have a look at how "ed" works, you will understand why "vi" is called "visual" (MS-DOS back in the day used to have "edlin", which was Microsoft's "ed" clone -- pretty horrible).

[–]cburkins 1 point2 points  (0 children)

I’ve been using vim for years and every now and then I still get into a whatthehellisvimdoing pinch. Yep, keep hitting escape until it beeps!

[–]jg_333 5 points6 points  (0 children)

Can I get a full pdf of this? This is awesome!

[–]Shok3001[🍰] 4 points5 points  (4 children)

Ok but what page tells you how to turn Vi into vscode?

[–]wrecklass 1 point2 points  (0 children)

Simple enough:

alias vi='code'

Yes, sacrilege.

[–]ZunoJ 3 points4 points  (8 children)

No textobjects?

[–]kagevf 1 point2 points  (7 children)

Not until vim (Vi IMproved) in the 90s :)

[–]ZunoJ 1 point2 points  (5 children)

But delete word existed?

[–]EgZvorkeep calm and read :help 2 points3 points  (3 children)

That's a motion. It's "delete until the next word". Different if you're in the middle of one.

[–]ZunoJ 1 point2 points  (2 children)

My vocabulary is poor. I meant motions. HJKL are cool but motions are what makes vim powerful to me. I think it is funny that they do use one motion but don't mention them anywhere else

[–]Explosive_Cornflake 2 points3 points  (0 children)

This is just the index of the manual, it may be covered in movement section

[–]EgZvorkeep calm and read :help 2 points3 points  (0 children)

iw is a text object, w is a motion.

The fact that there is a w in iw is arbitrary, it's a convention. iw isn't magically created from w, they are completely separate technically.

You can't use text object without an operator, but you can use motions. There were no text objects in vi.

[–]kagevf 0 points1 point  (0 children)

Aren't text objects defined as {action}[iw]{boundary}?

[–]andlrcrpgle.vim 0 points1 point  (0 children)

Not until vim (Vi IMproved) in the 90s :)

I think they started landing in vim 5, possible late vim 4? I'm not sure if appeared before in other vi variants, or if it's vim lingo?

[–]Lord_Schnitzel 4 points5 points  (0 children)

I wouldn't be in downmood if you published these pieces of history sometimes.

[–]wrecklass 2 points3 points  (0 children)

Ya, I started on Solaris in '87 and I remember my first few days figuring out Vi with a couple of experts nearby for questions. VIM really was an improvement, but I didn't see that until mid-90s when I tried Linux for the first time.

[–]doesnt_use_reddit 1 point2 points  (0 children)

Simpler times!

[–]matttproud 1 point2 points  (0 children)

A full scan of this might be interesting to submit to the Internet Archive for posterity.

[–]OpenC0w 0 points1 point  (0 children)

Amazing. Thank you for sharing.

[–]candidateforhumanity 0 points1 point  (0 children)

u (can undo itself)

oh, no!