AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
VI ( 1) vi file vi vi + n file vi + file vi -r vi -r file vi filel, file2, vi -t tag vi +/pat file VI (l) Edit at first line of file Edit a new empty file Edit at n line in file Edit at last line in file List saved files Recover file and edit saved file Edit filel; file2; .. . (after editing filel enter :n for each remaining file) Edit at tag file in tags file Search for and edit at pattern in file view file Read only view of file LEAVING VI EDITOR :q Quit vi when no changes have occurred since last write :q! :wq zz POSITIONING THE File Positioning fntF fntB fntD fntU fntE fntY fn}G fn}lpat fn}?pat fn}n fn/N (n}lpatl+m fn}?pat?-m Screen Positioning fn}H fn}L M Line Positioning 0 Quit vi, do not save changes since last write Write and quit (exit vi, saving changes) Write and quit (exit vi, saving changes) CURSOR Forward (nj full screens Backward screens Scroll down (default is half screen) Scroll up (default is half screen) Scroll down 1 line Scroll up 1 line Go to line n (default is last line of file) Go to next line matching pat Previous line matching pat Repeat last I or ? Reverse last I or ? m th line after pat m th line before pat To nth line from top of display. Without n, to top To nth line from bottom of display. Without n, to bottom To middle line of display Beginning of line - 2 -
VI (l) fnj$ End of line fn}+ Next line, at first non-white [nj- Previous line, at first non-white fn} Return, same as + � fn/! 1 or j Next line, same column [n}ll or k Previous line, same column Character Positioning Within a Line [n}l First non-white [njh or -+ fnjl or + fn}spacebar fnjbackspace [ntH [njfz fn}Fz fnjtz fn}Tz fnj; fnj, fn/1 Word Positioning fnjw [njb [nje fn}W fn}B fn}E Sentence, [nj ) [nj( fnj } fnj { Forward one character Backward one character Same as -+ Backwards one character Same as +- or backspace Find z forward Find z backward Move up to z forward Move up to z backward Repeat last f, F, t, or T Inverse of ; Move to specified column number n VI ( 1) Move forward to beginning of word. Punctuation and strings of punctuation count as words. Move back to beginning of word. Punctuation and strings of punctuation count as words. Move forward to end of word. Punctuation and strings of punctuation count as words. Move forward to beginning of word. Punctuation ignored. Move back to beginning of word. Punctuation ignored. Move forward to end of word. Punctuation ignored. Paragraph, Heading Positioning Forward to next sentence Back a sentence Forward to next paragraph Back a paragraph - 3-
- Page 571 and 572: TEE(l) TEE(l) NAME tee - pipe fitti
- Page 573 and 574: TEST ( 1 ) TEST (I) NAME test - con
- Page 575 and 576: TIME ( 1) TIME ( 1) NAME time - tim
- Page 577: TOUCH (!) TOUCH (!) NAME touch - up
- Page 581 and 582: TRUE ( ! ) NAME true, false - provi
- Page 583 and 584: TSET ( 1) {AT&T UNIX PC only ) TSET
- Page 585: TSORT ( l ) TSORT ( 1) NAME tsort -
- Page 588 and 589: � I I I I I I I II I I I I I I I
- Page 590 and 591: UAHELP (l) \US\ \BL\ \BS\ \EOT\ (AT
- Page 592 and 593: !�
- Page 595 and 596: UMODEM(l) UMODEM (l) NAME umodem -
- Page 597 and 598: UNAME(l) UNAME(l) NAME uname - prin
- Page 599: UNGET ( l ) UNGET ( l ) NAME unget
- Page 602 and 603: � \.,_ .:1 :� \__. ·
- Page 605 and 606: UUCP {IC) UUCP {IC) NAME uucp, uulo
- Page 607 and 608: UUSTAT (IC) UUSTAT ( IC ) NAME uust
- Page 609 and 610: UUTO (lC} UUTO (lC} NAME uuto, uupi
- Page 611 and 612: UUX ( lC ) UUX ( lC ) NAME uux - UN
- Page 613 and 614: VAL(l) VAL(I) NAME val - validate s
- Page 615 and 616: VC (l) VC (l) NAME vc - version con
- Page 617: VC (l) VC ( l ) ::text Used for key
- Page 622 and 623: VI (l) rn OAD Av MODIFYING TEXT Cha
- Page 624 and 625: VI ( 1 ) VI( 1) file to newtext :gf
- Page 626 and 627: VI (l) VI (l) :set x? Show value of
- Page 628 and 629: VI (l) VI ( 1) mapped to I, then if
- Page 630 and 631: VI (l) VI (l) won't be broken. Inse
- Page 632 and 633: � I . .... .,_ J _ . . ·
- Page 634 and 635: .. \ '-�� -·
- Page 637 and 638: WIIO (I) WHO(l) NAME who - who is o
- Page 639: WRITE ( l ) WRITE ( l ) NAME write
- Page 642 and 643: XARGS(l) XARGS (l) -nnumber Execute
- Page 645 and 646: YACC { I ) YACC { l ) NAME yacc - y
- Page 647 and 648: INTRO ( 2) INTR0 ( 2 ) NAME intro -
- Page 649 and 650: INTRO ( 2) INTR0 (2) 21 EISDffi Is
- Page 651 and 652: INTRO (2) INTRO ( 2) ProcO is the s
- Page 653 and 654: INTR0 (2) INTR0 (2) permission requ
- Page 655 and 656: INTR0 (2) time_t shm_dtime; time_t
- Page 657: ACCESS (2} ACCESS (2} NAME access -
- Page 661 and 662: ALARM (2) ALARM (2) NAME alarm - se
- Page 663: BRK(2) BRK ( 2 ) NAME brk, sbrk - c
- Page 667 and 668: CHMOD (2) CHMOD (2) NAME chmod - ch
- Page 669: CHOWN(2) CHOWN(2) NAME chown - chan
VI (l)<br />
fnj$ End of line<br />
fn}+ Next line, at first non-white<br />
[nj- Previous line, at first non-white<br />
fn} Return, same as +<br />
� fn/! 1 or j Next line, same column<br />
[n}ll or k Previous line, same column<br />
Character Positioning Within a Line<br />
[n}l First non-white<br />
[njh or -+<br />
fnjl or +<br />
fn}spacebar<br />
fnjbackspace<br />
[ntH<br />
[njfz<br />
fn}Fz<br />
fnjtz<br />
fn}Tz<br />
fnj;<br />
fnj,<br />
fn/1<br />
Word Positioning<br />
fnjw<br />
[njb<br />
[nje<br />
fn}W<br />
fn}B<br />
fn}E<br />
Sentence,<br />
[nj )<br />
[nj(<br />
fnj }<br />
fnj {<br />
Forward one character<br />
Backward one character<br />
Same as -+<br />
Backwards one character<br />
Same as +- or backspace<br />
Find z forward<br />
Find z backward<br />
Move up to z forward<br />
Move up to z backward<br />
Repeat last f, F, t, or T<br />
Inverse of ;<br />
Move to specified column number n<br />
VI ( 1)<br />
Move forward to beginning of word. Punctuation<br />
and strings of punctuation count as<br />
words.<br />
Move back to beginning of word. Punctuation<br />
and strings of punctuation count as<br />
words.<br />
Move forward to end of word. Punctuation<br />
and strings of punctuation count as words.<br />
Move forward to beginning of word. Punctuation<br />
ignored.<br />
Move back to beginning of word. Punctuation<br />
ignored.<br />
Move forward to end of word. Punctuation<br />
ignored.<br />
Paragraph, Heading Positioning<br />
Forward to next sentence<br />
Back a sentence<br />
Forward to next paragraph<br />
Back a paragraph<br />
- 3-