home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume44 / vim / part01 < prev    next >
SHell self-extracting ARchive  |  1994-08-16  |  67.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 6d 6f | 6f 6c 40 6f 63 65 2e 6e |From: mo|ol@oce.n|
|00000010| 6c 20 28 42 72 61 6d 20 | 4d 6f 6f 6c 65 6e 61 61 |l (Bram |Moolenaa|
|00000020| 72 29 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |r).Newsg|roups: c|
|00000030| 6f 6d 70 2e 73 6f 75 72 | 63 65 73 2e 6d 69 73 63 |omp.sour|ces.misc|
|00000040| 0a 53 75 62 6a 65 63 74 | 3a 20 76 34 34 69 30 32 |.Subject|: v44i02|
|00000050| 30 3a 20 20 76 69 6d 20 | 2d 20 56 69 20 49 4d 70 |0: vim |- Vi IMp|
|00000060| 72 6f 76 65 64 20 65 64 | 69 74 6f 72 2c 20 76 33 |roved ed|itor, v3|
|00000070| 2e 30 2c 20 50 61 72 74 | 30 31 2f 32 36 0a 44 61 |.0, Part|01/26.Da|
|00000080| 74 65 3a 20 31 36 20 41 | 75 67 20 31 39 39 34 20 |te: 16 A|ug 1994 |
|00000090| 32 31 3a 31 37 3a 31 30 | 20 2d 30 35 30 30 0a 4f |21:17:10| -0500.O|
|000000a0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 53 74 65 |rganizat|ion: Ste|
|000000b0| 72 6c 69 6e 67 20 53 6f | 66 74 77 61 72 65 0a 53 |rling So|ftware.S|
|000000c0| 65 6e 64 65 72 3a 20 6b | 65 6e 74 40 73 70 61 72 |ender: k|ent@spar|
|000000d0| 6b 79 2e 73 74 65 72 6c | 69 6e 67 2e 63 6f 6d 0a |ky.sterl|ing.com.|
|000000e0| 41 70 70 72 6f 76 65 64 | 3a 20 6b 65 6e 74 40 73 |Approved|: kent@s|
|000000f0| 70 61 72 6b 79 2e 73 74 | 65 72 6c 69 6e 67 2e 63 |parky.st|erling.c|
|00000100| 6f 6d 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |om.Messa|ge-ID: <|
|00000110| 33 32 72 72 76 36 24 6b | 39 73 40 73 70 61 72 6b |32rrv6$k|9s@spark|
|00000120| 79 2e 73 74 65 72 6c 69 | 6e 67 2e 63 6f 6d 3e 0a |y.sterli|ng.com>.|
|00000130| 58 2d 4d 64 34 2d 53 69 | 67 6e 61 74 75 72 65 3a |X-Md4-Si|gnature:|
|00000140| 20 61 62 30 30 31 31 38 | 34 34 36 35 30 37 35 63 | ab00118|4465075c|
|00000150| 37 63 38 35 30 38 63 33 | 34 37 65 31 34 35 31 35 |7c8508c3|47e14515|
|00000160| 66 0a 0a 53 75 62 6d 69 | 74 74 65 64 2d 62 79 3a |f..Submi|tted-by:|
|00000170| 20 6d 6f 6f 6c 40 6f 63 | 65 2e 6e 6c 20 28 42 72 | mool@oc|e.nl (Br|
|00000180| 61 6d 20 4d 6f 6f 6c 65 | 6e 61 61 72 29 0a 50 6f |am Moole|naar).Po|
|00000190| 73 74 69 6e 67 2d 6e 75 | 6d 62 65 72 3a 20 56 6f |sting-nu|mber: Vo|
|000001a0| 6c 75 6d 65 20 34 34 2c | 20 49 73 73 75 65 20 32 |lume 44,| Issue 2|
|000001b0| 30 0a 41 72 63 68 69 76 | 65 2d 6e 61 6d 65 3a 20 |0.Archiv|e-name: |
|000001c0| 76 69 6d 2f 70 61 72 74 | 30 31 0a 45 6e 76 69 72 |vim/part|01.Envir|
|000001d0| 6f 6e 6d 65 6e 74 3a 20 | 55 4e 49 58 2c 20 41 4d |onment: |UNIX, AM|
|000001e0| 49 47 41 2c 20 4d 53 2d | 44 4f 53 2c 20 57 69 6e |IGA, MS-|DOS, Win|
|000001f0| 64 6f 77 73 20 4e 54 0a | 53 75 70 65 72 73 65 64 |dows NT.|Supersed|
|00000200| 65 73 3a 20 76 69 6d 3a | 20 56 6f 6c 75 6d 65 20 |es: vim:| Volume |
|00000210| 34 31 2c 20 49 73 73 75 | 65 20 35 30 2d 37 35 0a |41, Issu|e 50-75.|
|00000220| 0a 23 21 20 2f 62 69 6e | 2f 73 68 0a 23 20 54 68 |.#! /bin|/sh.# Th|
|00000230| 69 73 20 69 73 20 61 20 | 73 68 65 6c 6c 20 61 72 |is is a |shell ar|
|00000240| 63 68 69 76 65 2e 20 20 | 52 65 6d 6f 76 65 20 61 |chive. |Remove a|
|00000250| 6e 79 74 68 69 6e 67 20 | 62 65 66 6f 72 65 20 74 |nything |before t|
|00000260| 68 69 73 20 6c 69 6e 65 | 2c 20 74 68 65 6e 20 66 |his line|, then f|
|00000270| 65 65 64 20 69 74 0a 23 | 20 69 6e 74 6f 20 61 20 |eed it.#| into a |
|00000280| 73 68 65 6c 6c 20 76 69 | 61 20 22 73 68 20 66 69 |shell vi|a "sh fi|
|00000290| 6c 65 22 20 6f 72 20 73 | 69 6d 69 6c 61 72 2e 20 |le" or s|imilar. |
|000002a0| 20 54 6f 20 6f 76 65 72 | 77 72 69 74 65 20 65 78 | To over|write ex|
|000002b0| 69 73 74 69 6e 67 20 66 | 69 6c 65 73 2c 0a 23 20 |isting f|iles,.# |
|000002c0| 74 79 70 65 20 22 73 68 | 20 66 69 6c 65 20 2d 63 |type "sh| file -c|
|000002d0| 22 2e 0a 23 20 43 6f 6e | 74 65 6e 74 73 3a 20 20 |"..# Con|tents: |
|000002e0| 76 69 6d 20 76 69 6d 2f | 64 6f 63 20 76 69 6d 2f |vim vim/|doc vim/|
|000002f0| 64 6f 63 2f 72 65 66 65 | 72 65 6e 63 65 2e 64 6f |doc/refe|rence.do|
|00000300| 63 2e 44 20 76 69 6d 2f | 6d 61 63 72 6f 73 0a 23 |c.D vim/|macros.#|
|00000310| 20 20 20 76 69 6d 2f 6d | 61 63 72 6f 73 2f 68 61 | vim/m|acros/ha|
|00000320| 6e 6f 69 20 76 69 6d 2f | 6d 61 63 72 6f 73 2f 6d |noi vim/|macros/m|
|00000330| 61 7a 65 20 76 69 6d 2f | 6d 61 63 72 6f 73 2f 75 |aze vim/|macros/u|
|00000340| 72 6d 20 76 69 6d 2f 73 | 72 63 0a 23 20 20 20 76 |rm vim/s|rc.# v|
|00000350| 69 6d 2f 73 72 63 2f 61 | 64 64 63 72 2e 62 61 74 |im/src/a|ddcr.bat|
|00000360| 20 76 69 6d 2f 73 72 63 | 2f 70 72 6f 74 6f 20 76 | vim/src|/proto v|
|00000370| 69 6d 2f 74 6f 6f 6c 73 | 20 76 69 6d 2f 74 75 74 |im/tools| vim/tut|
|00000380| 6f 72 0a 23 20 57 72 61 | 70 70 65 64 20 62 79 20 |or.# Wra|pped by |
|00000390| 6b 65 6e 74 40 73 70 61 | 72 6b 79 20 6f 6e 20 4d |kent@spa|rky on M|
|000003a0| 6f 6e 20 41 75 67 20 31 | 35 20 32 31 3a 34 33 3a |on Aug 1|5 21:43:|
|000003b0| 35 36 20 31 39 39 34 0a | 50 41 54 48 3d 2f 62 69 |56 1994.|PATH=/bi|
|000003c0| 6e 3a 2f 75 73 72 2f 62 | 69 6e 3a 2f 75 73 72 2f |n:/usr/b|in:/usr/|
|000003d0| 75 63 62 3a 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 62 |ucb:/usr|/local/b|
|000003e0| 69 6e 3a 2f 75 73 72 2f | 6c 62 69 6e 3a 24 50 41 |in:/usr/|lbin:$PA|
|000003f0| 54 48 20 3b 20 65 78 70 | 6f 72 74 20 50 41 54 48 |TH ; exp|ort PATH|
|00000400| 0a 65 63 68 6f 20 49 66 | 20 74 68 69 73 20 61 72 |.echo If| this ar|
|00000410| 63 68 69 76 65 20 69 73 | 20 63 6f 6d 70 6c 65 74 |chive is| complet|
|00000420| 65 2c 20 79 6f 75 20 77 | 69 6c 6c 20 73 65 65 20 |e, you w|ill see |
|00000430| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|00000440| 73 73 61 67 65 3a 0a 65 | 63 68 6f 20 27 20 20 20 |ssage:.e|cho ' |
|00000450| 20 20 20 20 20 20 20 22 | 73 68 61 72 3a 20 45 6e | "|shar: En|
|00000460| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 31 20 28 |d of arc|hive 1 (|
|00000470| 6f 66 20 32 36 29 2e 22 | 27 0a 69 66 20 74 65 73 |of 26)."|'.if tes|
|00000480| 74 20 21 20 2d 64 20 27 | 76 69 6d 27 20 3b 20 74 |t ! -d '|vim' ; t|
|00000490| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|000004a0| 72 3a 20 43 72 65 61 74 | 69 6e 67 20 64 69 72 65 |r: Creat|ing dire|
|000004b0| 63 74 6f 72 79 20 5c 22 | 27 76 69 6d 27 5c 22 0a |ctory \"|'vim'\".|
|000004c0| 20 20 20 20 6d 6b 64 69 | 72 20 27 76 69 6d 27 0a | mkdi|r 'vim'.|
|000004d0| 66 69 0a 69 66 20 74 65 | 73 74 20 21 20 2d 64 20 |fi.if te|st ! -d |
|000004e0| 27 76 69 6d 2f 64 6f 63 | 27 20 3b 20 74 68 65 6e |'vim/doc|' ; then|
|000004f0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00000500| 43 72 65 61 74 69 6e 67 | 20 64 69 72 65 63 74 6f |Creating| directo|
|00000510| 72 79 20 5c 22 27 76 69 | 6d 2f 64 6f 63 27 5c 22 |ry \"'vi|m/doc'\"|
|00000520| 0a 20 20 20 20 6d 6b 64 | 69 72 20 27 76 69 6d 2f |. mkd|ir 'vim/|
|00000530| 64 6f 63 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |doc'.fi.|if test |
|00000540| 2d 66 20 27 76 69 6d 2f | 64 6f 63 2f 72 65 66 65 |-f 'vim/|doc/refe|
|00000550| 72 65 6e 63 65 2e 64 6f | 63 2e 44 27 20 2d 61 20 |rence.do|c.D' -a |
|00000560| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00000570| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00000580| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00000590| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000005a0| 6c 65 20 5c 22 27 76 69 | 6d 2f 64 6f 63 2f 72 65 |le \"'vi|m/doc/re|
|000005b0| 66 65 72 65 6e 63 65 2e | 64 6f 63 2e 44 27 5c 22 |ference.|doc.D'\"|
|000005c0| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|000005d0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000005e0| 27 76 69 6d 2f 64 6f 63 | 2f 72 65 66 65 72 65 6e |'vim/doc|/referen|
|000005f0| 63 65 2e 64 6f 63 2e 44 | 27 5c 22 20 5c 28 35 39 |ce.doc.D|'\" \(59|
|00000600| 37 39 36 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |796 char|acters\)|
|00000610| 0a 20 20 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |. sed "|s/^X//" |
|00000620| 3e 27 76 69 6d 2f 64 6f | 63 2f 72 65 66 65 72 65 |>'vim/do|c/refere|
|00000630| 6e 63 65 2e 64 6f 63 2e | 44 27 20 3c 3c 27 45 4e |nce.doc.|D' <<'EN|
|00000640| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 09 09 09 43 |D_OF_FIL|E'.X...C|
|00000650| 6f 6d 6d 61 6e 64 5f 6c | 69 6e 65 20 6d 6f 64 65 |ommand_l|ine mode|
|00000660| 2e 0a 58 0a 58 3a 6e 6f | 72 65 6d 61 70 20 7b 6c |..X.X:no|remap {l|
|00000670| 68 73 7d 20 7b 72 68 73 | 7d 09 4d 61 70 20 74 68 |hs} {rhs|}.Map th|
|00000680| 65 20 6b 65 79 20 73 65 | 71 75 65 6e 63 65 20 7b |e key se|quence {|
|00000690| 6c 68 73 7d 20 74 6f 20 | 7b 72 68 73 7d 20 69 6e |lhs} to |{rhs} in|
|000006a0| 20 43 6f 6d 6d 61 6e 64 | 20 6d 6f 64 65 2e 20 0a | Command| mode. .|
|000006b0| 58 09 09 09 44 69 73 61 | 6c 6c 6f 77 20 72 65 6d |X...Disa|llow rem|
|000006c0| 61 70 70 69 6e 67 20 6f | 66 20 7b 72 68 73 7d 2e |apping o|f {rhs}.|
|000006d0| 20 7b 6e 6f 74 20 69 6e | 20 56 69 7d 0a 58 0a 58 | {not in| Vi}.X.X|
|000006e0| 3a 6e 6f 72 65 6d 61 70 | 21 20 7b 6c 68 73 7d 20 |:noremap|! {lhs} |
|000006f0| 7b 72 68 73 7d 09 4d 61 | 70 20 74 68 65 20 6b 65 |{rhs}.Ma|p the ke|
|00000700| 79 20 73 65 71 75 65 6e | 63 65 20 7b 6c 68 73 7d |y sequen|ce {lhs}|
|00000710| 20 74 6f 20 7b 72 68 73 | 7d 20 69 6e 20 69 6e 73 | to {rhs|} in ins|
|00000720| 65 72 74 20 61 6e 64 0a | 58 09 09 09 43 6f 6d 6d |ert and.|X...Comm|
|00000730| 61 6e 64 5f 6c 69 6e 65 | 20 6d 6f 64 65 2e 20 44 |and_line| mode. D|
|00000740| 69 73 61 6c 6c 6f 77 20 | 72 65 6d 61 70 70 69 6e |isallow |remappin|
|00000750| 67 20 6f 66 20 7b 72 68 | 73 7d 2e 20 7b 6e 6f 74 |g of {rh|s}. {not|
|00000760| 20 0a 58 09 09 09 69 6e | 20 56 69 7d 0a 58 0a 58 | .X...in| Vi}.X.X|
|00000770| 3a 75 6e 6d 5b 61 70 5d | 20 7b 6c 68 73 7d 09 09 |:unm[ap]| {lhs}..|
|00000780| 52 65 6d 6f 76 65 20 74 | 68 65 20 6d 61 70 70 69 |Remove t|he mappi|
|00000790| 6e 67 20 6f 66 20 7b 6c | 68 73 7d 20 66 6f 72 20 |ng of {l|hs} for |
|000007a0| 43 6f 6d 6d 61 6e 64 20 | 6d 6f 64 65 2e 0a 58 0a |Command |mode..X.|
|000007b0| 58 3a 75 6e 6d 5b 61 70 | 5d 21 20 7b 6c 68 73 7d |X:unm[ap|]! {lhs}|
|000007c0| 09 09 52 65 6d 6f 76 65 | 20 74 68 65 20 6d 61 70 |..Remove| the map|
|000007d0| 70 69 6e 67 20 6f 66 20 | 7b 6c 68 73 7d 20 66 6f |ping of |{lhs} fo|
|000007e0| 72 20 49 6e 73 65 72 74 | 20 61 6e 64 0a 58 09 09 |r Insert| and.X..|
|000007f0| 09 43 6f 6d 6d 61 6e 64 | 5f 6c 69 6e 65 20 6d 6f |.Command|_line mo|
|00000800| 64 65 2e 0a 58 0a 58 3a | 6d 61 70 09 09 09 4c 69 |de..X.X:|map...Li|
|00000810| 73 74 20 61 6c 6c 20 6b | 65 79 20 6d 61 70 70 69 |st all k|ey mappi|
|00000820| 6e 67 73 20 66 6f 72 20 | 43 6f 6d 6d 61 6e 64 20 |ngs for |Command |
|00000830| 6d 6f 64 65 2e 0a 58 0a | 58 3a 6d 61 70 21 09 09 |mode..X.|X:map!..|
|00000840| 09 4c 69 73 74 20 61 6c | 6c 20 6b 65 79 20 6d 61 |.List al|l key ma|
|00000850| 70 70 69 6e 67 73 20 66 | 6f 72 20 49 6e 73 65 72 |ppings f|or Inser|
|00000860| 74 20 61 6e 64 20 43 6f | 6d 6d 61 6e 64 5f 6c 69 |t and Co|mmand_li|
|00000870| 6e 65 0a 58 09 09 09 6d | 6f 64 65 2e 0a 58 0a 58 |ne.X...m|ode..X.X|
|00000880| 3a 6d 61 70 20 7b 6c 68 | 73 7d 09 09 4c 69 73 74 |:map {lh|s}..List|
|00000890| 20 74 68 65 20 6b 65 79 | 20 6d 61 70 70 69 6e 67 | the key| mapping|
|000008a0| 73 20 66 6f 72 20 74 68 | 65 20 6b 65 79 20 73 65 |s for th|e key se|
|000008b0| 71 75 65 6e 63 65 73 20 | 73 74 61 72 74 69 6e 67 |quences |starting|
|000008c0| 0a 58 09 09 09 77 69 74 | 68 20 7b 6c 68 73 7d 20 |.X...wit|h {lhs} |
|000008d0| 69 6e 20 43 6f 6d 6d 61 | 6e 64 20 6d 6f 64 65 2e |in Comma|nd mode.|
|000008e0| 20 7b 6e 6f 74 20 69 6e | 20 56 69 7d 0a 58 0a 58 | {not in| Vi}.X.X|
|000008f0| 3a 6d 61 70 21 20 7b 6c | 68 73 7d 09 09 4c 69 73 |:map! {l|hs}..Lis|
|00000900| 74 20 74 68 65 20 6b 65 | 79 20 6d 61 70 70 69 6e |t the ke|y mappin|
|00000910| 67 73 20 66 6f 72 20 74 | 68 65 20 6b 65 79 20 73 |gs for t|he key s|
|00000920| 65 71 75 65 6e 63 65 73 | 20 73 74 61 72 74 69 6e |equences| startin|
|00000930| 67 0a 58 09 09 09 77 69 | 74 68 20 7b 6c 68 73 7d |g.X...wi|th {lhs}|
|00000940| 20 69 6e 20 69 6e 73 65 | 72 74 20 61 6e 64 20 43 | in inse|rt and C|
|00000950| 6f 6d 6d 61 6e 64 5f 6c | 69 6e 65 20 6d 6f 64 65 |ommand_l|ine mode|
|00000960| 2e 20 7b 6e 6f 74 20 69 | 6e 20 56 69 7d 0a 58 0a |. {not i|n Vi}.X.|
|00000970| 58 3a 63 6d 5b 61 70 5d | 09 09 09 53 61 6d 65 20 |X:cm[ap]|...Same |
|00000980| 61 73 20 3a 6d 61 70 2c | 20 62 75 74 20 66 6f 72 |as :map,| but for|
|00000990| 20 43 6f 6d 6d 61 6e 64 | 5f 6c 69 6e 65 20 6d 6f | Command|_line mo|
|000009a0| 64 65 20 6f 6e 6c 79 2e | 20 7b 6e 6f 74 0a 58 09 |de only.| {not.X.|
|000009b0| 09 09 69 6e 20 56 69 7d | 0a 58 0a 58 3a 63 75 5b |..in Vi}|.X.X:cu[|
|000009c0| 6e 6d 61 70 5d 09 09 53 | 61 6d 65 20 61 73 20 3a |nmap]..S|ame as :|
|000009d0| 75 6e 6d 61 70 2c 20 62 | 75 74 20 66 6f 72 20 43 |unmap, b|ut for C|
|000009e0| 6f 6d 6d 61 6e 64 5f 6c | 69 6e 65 20 6d 6f 64 65 |ommand_l|ine mode|
|000009f0| 20 6f 6e 6c 79 2e 0a 58 | 09 09 09 7b 6e 6f 74 20 | only..X|...{not |
|00000a00| 69 6e 20 56 69 7d 0a 58 | 0a 58 3a 63 6e 6f 5b 72 |in Vi}.X|.X:cno[r|
|00000a10| 65 6d 61 70 5d 09 09 53 | 61 6d 65 20 61 73 20 3a |emap]..S|ame as :|
|00000a20| 6e 6f 72 65 6d 61 70 2c | 20 62 75 74 20 66 6f 72 |noremap,| but for|
|00000a30| 20 43 6f 6d 6d 61 6e 64 | 5f 6c 69 6e 65 20 6d 6f | Command|_line mo|
|00000a40| 64 65 20 6f 6e 6c 79 2e | 0a 58 09 09 09 7b 6e 6f |de only.|.X...{no|
|00000a50| 74 20 69 6e 20 56 69 7d | 0a 58 0a 58 3a 69 6d 5b |t in Vi}|.X.X:im[|
|00000a60| 61 70 5d 09 09 09 53 61 | 6d 65 20 61 73 20 3a 6d |ap]...Sa|me as :m|
|00000a70| 61 70 2c 20 62 75 74 20 | 66 6f 72 20 49 6e 73 65 |ap, but |for Inse|
|00000a80| 72 74 20 6d 6f 64 65 20 | 6f 6e 6c 79 2e 20 7b 6e |rt mode |only. {n|
|00000a90| 6f 74 20 69 6e 20 56 69 | 7d 0a 58 0a 58 3a 69 75 |ot in Vi|}.X.X:iu|
|00000aa0| 5b 6e 6d 61 70 5d 09 09 | 53 61 6d 65 20 61 73 20 |[nmap]..|Same as |
|00000ab0| 3a 75 6e 6d 61 70 2c 20 | 62 75 74 20 66 6f 72 20 |:unmap, |but for |
|00000ac0| 49 6e 73 65 72 74 20 6d | 6f 64 65 20 6f 6e 6c 79 |Insert m|ode only|
|00000ad0| 2e 20 7b 6e 6f 74 20 69 | 6e 0a 58 09 09 09 56 69 |. {not i|n.X...Vi|
|00000ae0| 7d 0a 58 0a 58 3a 69 6e | 6f 5b 72 65 6d 61 70 5d |}.X.X:in|o[remap]|
|00000af0| 09 09 53 61 6d 65 20 61 | 73 20 3a 6e 6f 72 65 6d |..Same a|s :norem|
|00000b00| 61 70 2c 20 62 75 74 20 | 66 6f 72 20 49 6e 73 65 |ap, but |for Inse|
|00000b10| 72 74 20 6d 6f 64 65 20 | 6f 6e 6c 79 2e 20 7b 6e |rt mode |only. {n|
|00000b20| 6f 74 20 69 6e 0a 58 09 | 09 09 56 69 7d 0a 58 0a |ot in.X.|..Vi}.X.|
|00000b30| 58 54 68 65 73 65 20 63 | 6f 6d 6d 61 6e 64 73 20 |XThese c|ommands |
|00000b40| 61 72 65 20 75 73 65 64 | 20 74 6f 20 6d 61 70 20 |are used| to map |
|00000b50| 61 20 6b 65 79 20 6f 72 | 20 6b 65 79 20 73 65 71 |a key or| key seq|
|00000b60| 75 65 6e 63 65 20 74 6f | 20 61 20 73 74 72 69 6e |uence to| a strin|
|00000b70| 67 20 6f 66 20 0a 58 63 | 68 61 72 61 63 74 65 72 |g of .Xc|haracter|
|00000b80| 73 2e 20 59 6f 75 20 63 | 61 6e 20 75 73 65 20 74 |s. You c|an use t|
|00000b90| 68 69 73 20 74 6f 20 70 | 75 74 20 63 6f 6d 6d 61 |his to p|ut comma|
|00000ba0| 6e 64 20 73 65 71 75 65 | 6e 63 65 73 20 75 6e 64 |nd seque|nces und|
|00000bb0| 65 72 20 66 75 6e 63 74 | 69 6f 6e 20 6b 65 79 73 |er funct|ion keys|
|00000bc0| 2c 20 0a 58 74 72 61 6e | 73 6c 61 74 65 20 6f 6e |, .Xtran|slate on|
|00000bd0| 65 20 6b 65 79 20 69 6e | 74 6f 20 61 6e 6f 74 68 |e key in|to anoth|
|00000be0| 65 72 2c 20 65 74 63 2e | 20 53 65 65 20 74 68 65 |er, etc.| See the|
|00000bf0| 20 22 4f 70 74 69 6f 6e | 73 22 20 63 68 61 70 74 | "Option|s" chapt|
|00000c00| 65 72 20 62 65 6c 6f 77 | 20 66 6f 72 20 68 6f 77 |er below| for how|
|00000c10| 20 0a 58 74 6f 20 73 61 | 76 65 20 61 6e 64 20 72 | .Xto sa|ve and r|
|00000c20| 65 73 74 6f 72 65 20 74 | 68 65 20 63 75 72 72 65 |estore t|he curre|
|00000c30| 6e 74 20 6d 61 70 70 69 | 6e 67 2e 0a 58 0a 58 54 |nt mappi|ng..X.XT|
|00000c40| 68 65 72 65 20 61 72 65 | 20 74 68 72 65 65 20 73 |here are| three s|
|00000c50| 65 74 73 20 6f 66 20 6d | 61 70 70 69 6e 67 73 0a |ets of m|appings.|
|00000c60| 58 2d 20 46 6f 72 20 49 | 6e 73 65 72 74 20 6d 6f |X- For I|nsert mo|
|00000c70| 64 65 2e 20 54 68 65 73 | 65 20 61 72 65 20 61 6c |de. Thes|e are al|
|00000c80| 73 6f 20 75 73 65 64 20 | 69 6e 20 52 65 70 6c 61 |so used |in Repla|
|00000c90| 63 65 20 6d 6f 64 65 2e | 0a 58 2d 20 46 6f 72 20 |ce mode.|.X- For |
|00000ca0| 43 6f 6d 6d 61 6e 64 5f | 6c 69 6e 65 20 6d 6f 64 |Command_|line mod|
|00000cb0| 65 3a 20 57 68 65 6e 20 | 65 6e 74 65 72 69 6e 67 |e: When |entering|
|00000cc0| 20 61 20 22 3a 22 20 6f | 72 20 22 2f 22 20 63 6f | a ":" o|r "/" co|
|00000cd0| 6d 6d 61 6e 64 2e 0a 58 | 2d 20 46 6f 72 20 43 6f |mmand..X|- For Co|
|00000ce0| 6d 6d 61 6e 64 20 6d 6f | 64 65 3a 20 57 68 65 6e |mmand mo|de: When|
|00000cf0| 20 74 79 70 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 | typing |commands|
|00000d00| 2e 0a 58 0a 58 54 68 65 | 20 6f 72 69 67 69 6e 61 |..X.XThe| origina|
|00000d10| 6c 20 76 69 20 64 69 64 | 20 6e 6f 74 20 68 61 76 |l vi did| not hav|
|00000d20| 65 20 73 65 70 61 72 61 | 74 65 20 6d 61 70 70 69 |e separa|te mappi|
|00000d30| 6e 67 73 20 66 6f 72 20 | 49 6e 73 65 72 74 20 6d |ngs for |Insert m|
|00000d40| 6f 64 65 20 61 6e 64 0a | 58 43 6f 6d 6d 61 6e 64 |ode and.|XCommand|
|00000d50| 5f 6c 69 6e 65 20 6d 6f | 64 65 2e 20 54 68 65 72 |_line mo|de. Ther|
|00000d60| 65 66 6f 72 65 20 74 68 | 65 20 22 3a 6d 61 70 21 |efore th|e ":map!|
|00000d70| 22 20 63 6f 6d 6d 61 6e | 64 20 65 6e 74 65 72 73 |" comman|d enters|
|00000d80| 20 61 6e 64 20 64 69 73 | 70 6c 61 79 73 0a 58 6d | and dis|plays.Xm|
|00000d90| 61 70 70 69 6e 67 73 20 | 66 6f 72 20 62 6f 74 68 |appings |for both|
|00000da0| 2e 20 49 6e 20 56 69 6d | 20 79 6f 75 20 63 61 6e |. In Vim| you can|
|00000db0| 20 75 73 65 20 74 68 65 | 20 22 3a 63 6d 61 70 22 | use the| ":cmap"|
|00000dc0| 20 61 6e 64 20 22 3a 69 | 6d 61 70 22 20 63 6f 6d | and ":i|map" com|
|00000dd0| 6d 61 6e 64 73 20 74 6f | 0a 58 65 6e 74 65 72 20 |mands to|.Xenter |
|00000de0| 6d 61 70 70 69 6e 67 73 | 20 66 6f 72 20 65 61 63 |mappings| for eac|
|00000df0| 68 20 6d 6f 64 65 20 73 | 65 70 61 72 61 74 65 6c |h mode s|eparatel|
|00000e00| 79 2e 20 57 68 65 6e 20 | 6c 69 73 74 69 6e 67 20 |y. When |listing |
|00000e10| 6d 61 70 70 69 6e 67 73 | 20 77 69 74 68 20 22 3a |mappings| with ":|
|00000e20| 6d 61 70 21 22 2c 0a 58 | 22 3a 63 6d 61 70 22 20 |map!",.X|":cmap" |
|00000e30| 6f 72 20 22 3a 69 6d 61 | 70 22 20 74 68 65 20 63 |or ":ima|p" the c|
|00000e40| 68 61 72 61 63 74 65 72 | 20 69 6e 20 63 6f 6c 75 |haracter| in colu|
|00000e50| 6d 6e 20 31 20 69 73 20 | 3c 21 3e 20 66 6f 72 20 |mn 1 is |<!> for |
|00000e60| 6d 61 70 70 69 6e 67 73 | 20 69 6e 20 62 6f 74 68 |mappings| in both|
|00000e70| 0a 58 49 6e 73 65 72 74 | 20 61 6e 64 20 43 6f 6d |.XInsert| and Com|
|00000e80| 6d 61 6e 64 5f 6c 69 6e | 65 20 6d 6f 64 65 2c 20 |mand_lin|e mode, |
|00000e90| 3c 69 3e 20 66 6f 72 20 | 49 6e 73 65 72 74 20 6d |<i> for |Insert m|
|00000ea0| 6f 64 65 20 6f 6e 6c 79 | 20 61 6e 64 20 3c 63 3e |ode only| and <c>|
|00000eb0| 20 66 6f 72 0a 58 43 6f | 6d 6d 61 6e 64 5f 6c 69 | for.XCo|mmand_li|
|00000ec0| 6e 65 20 6d 6f 64 65 20 | 6f 6e 6c 79 2e 0a 58 0a |ne mode |only..X.|
|00000ed0| 58 45 76 65 72 79 74 68 | 69 6e 67 20 66 72 6f 6d |XEveryth|ing from|
|00000ee0| 20 74 68 65 20 66 69 72 | 73 74 20 6e 6f 6e 2d 62 | the fir|st non-b|
|00000ef0| 6c 61 6e 6b 20 61 66 74 | 65 72 20 7b 6c 68 73 7d |lank aft|er {lhs}|
|00000f00| 20 75 70 20 74 6f 20 74 | 68 65 20 65 6e 64 20 6f | up to t|he end o|
|00000f10| 66 20 74 68 65 20 6c 69 | 6e 65 0a 58 28 6f 72 20 |f the li|ne.X(or |
|00000f20| 3c 7c 3e 29 20 69 73 20 | 63 6f 6e 73 69 64 65 72 |<|>) is |consider|
|00000f30| 65 64 20 74 6f 20 62 65 | 20 70 61 72 74 20 6f 66 |ed to be| part of|
|00000f40| 20 7b 72 68 73 7d 2e 20 | 54 68 69 73 20 61 6c 6c | {rhs}. |This all|
|00000f50| 6f 77 73 20 74 68 65 20 | 7b 72 68 73 7d 20 74 6f |ows the |{rhs} to|
|00000f60| 20 65 6e 64 0a 58 77 69 | 74 68 20 61 20 73 70 61 | end.Xwi|th a spa|
|00000f70| 63 65 2e 0a 58 0a 58 54 | 6f 20 69 6e 63 6c 75 64 |ce..X.XT|o includ|
|00000f80| 65 20 61 20 73 70 61 63 | 65 20 69 6e 20 7b 6c 68 |e a spac|e in {lh|
|00000f90| 73 7d 20 70 72 65 63 65 | 64 65 20 69 74 20 77 69 |s} prece|de it wi|
|00000fa0| 74 68 20 61 20 43 54 52 | 4c 2d 56 20 28 74 79 70 |th a CTR|L-V (typ|
|00000fb0| 65 20 74 77 6f 20 43 54 | 52 4c 2d 56 73 20 66 6f |e two CT|RL-Vs fo|
|00000fc0| 72 20 0a 58 65 61 63 68 | 20 73 70 61 63 65 29 2e |r .Xeach| space).|
|00000fd0| 20 49 66 20 79 6f 75 20 | 77 61 6e 74 20 61 20 7b | If you |want a {|
|00000fe0| 72 68 73 7d 20 74 68 61 | 74 20 73 74 61 72 74 73 |rhs} tha|t starts|
|00000ff0| 20 77 69 74 68 20 61 20 | 73 70 61 63 65 2c 20 70 | with a |space, p|
|00001000| 72 65 63 65 64 65 20 7b | 72 68 73 7d 20 0a 58 77 |recede {|rhs} .Xw|
|00001010| 69 74 68 20 61 20 73 69 | 6e 67 6c 65 20 43 54 52 |ith a si|ngle CTR|
|00001020| 4c 2d 56 20 28 59 6f 75 | 20 68 61 76 65 20 74 6f |L-V (You| have to|
|00001030| 20 74 79 70 65 20 43 54 | 52 4c 2d 56 20 74 77 6f | type CT|RL-V two|
|00001040| 20 74 69 6d 65 73 29 2e | 20 59 6f 75 20 63 61 6e | times).| You can|
|00001050| 20 63 72 65 61 74 65 20 | 61 6e 20 0a 58 65 6d 70 | create |an .Xemp|
|00001060| 74 79 20 7b 72 68 73 7d | 20 62 79 20 74 79 70 69 |ty {rhs}| by typi|
|00001070| 6e 67 20 6e 6f 74 68 69 | 6e 67 20 61 66 74 65 72 |ng nothi|ng after|
|00001080| 20 74 68 65 20 74 77 6f | 20 43 54 52 4c 2d 56 73 | the two| CTRL-Vs|
|00001090| 2e 0a 58 0a 58 49 74 20 | 69 73 20 6e 6f 74 20 70 |..X.XIt |is not p|
|000010a0| 6f 73 73 69 62 6c 65 20 | 74 6f 20 70 75 74 20 61 |ossible |to put a|
|000010b0| 20 63 6f 6d 6d 65 6e 74 | 20 61 66 74 65 72 20 74 | comment| after t|
|000010c0| 68 69 73 20 63 6f 6d 6d | 61 6e 64 2c 20 62 65 63 |his comm|and, bec|
|000010d0| 61 75 73 65 20 74 68 65 | 20 3c 22 3e 20 0a 58 63 |ause the| <"> .Xc|
|000010e0| 68 61 72 61 63 74 65 72 | 20 69 73 20 63 6f 6e 73 |haracter| is cons|
|000010f0| 69 64 65 72 65 64 20 74 | 6f 20 62 65 20 70 61 72 |idered t|o be par|
|00001100| 74 20 6f 66 20 74 68 65 | 20 7b 72 68 73 7d 2e 20 |t of the| {rhs}. |
|00001110| 54 6f 20 70 75 74 20 61 | 20 3c 7c 3e 20 69 6e 20 |To put a| <|> in |
|00001120| 7b 72 68 73 7d 20 0a 58 | 65 73 63 61 70 65 20 69 |{rhs} .X|escape i|
|00001130| 74 20 77 69 74 68 20 61 | 20 62 61 63 6b 73 6c 61 |t with a| backsla|
|00001140| 73 68 20 6f 72 20 61 20 | 43 54 52 4c 2d 56 20 28 |sh or a |CTRL-V (|
|00001150| 74 6f 20 67 65 74 20 6f | 6e 65 20 43 54 52 4c 2d |to get o|ne CTRL-|
|00001160| 56 20 79 6f 75 20 68 61 | 76 65 20 74 6f 20 74 79 |V you ha|ve to ty|
|00001170| 70 65 20 0a 58 69 74 20 | 74 77 69 63 65 29 2e 0a |pe .Xit |twice)..|
|00001180| 58 0a 58 54 6f 20 61 76 | 6f 69 64 20 6d 61 70 70 |X.XTo av|oid mapp|
|00001190| 69 6e 67 20 6f 66 20 74 | 68 65 20 63 68 61 72 61 |ing of t|he chara|
|000011a0| 63 74 65 72 73 20 79 6f | 75 20 74 79 70 65 20 69 |cters yo|u type i|
|000011b0| 6e 20 69 6e 73 65 72 74 | 20 6f 72 20 43 6f 6d 6d |n insert| or Comm|
|000011c0| 61 6e 64 5f 6c 69 6e 65 | 20 6d 6f 64 65 2c 20 0a |and_line| mode, .|
|000011d0| 58 74 79 70 65 20 61 20 | 43 54 52 4c 2d 56 20 66 |Xtype a |CTRL-V f|
|000011e0| 69 72 73 74 2e 20 54 68 | 65 20 6d 61 70 70 69 6e |irst. Th|e mappin|
|000011f0| 67 20 69 6e 20 49 6e 73 | 65 72 74 20 6d 6f 64 65 |g in Ins|ert mode|
|00001200| 20 69 73 20 64 69 73 61 | 62 6c 65 64 20 69 66 20 | is disa|bled if |
|00001210| 74 68 65 20 27 70 61 73 | 74 65 27 0a 58 6f 70 74 |the 'pas|te'.Xopt|
|00001220| 69 6f 6e 20 69 73 20 73 | 65 74 2e 0a 58 0a 58 4e |ion is s|et..X.XN|
|00001230| 6f 74 65 20 74 68 61 74 | 20 74 68 65 20 73 65 63 |ote that| the sec|
|00001240| 6f 6e 64 20 63 68 61 72 | 61 63 74 65 72 20 28 61 |ond char|acter (a|
|00001250| 72 67 75 6d 65 6e 74 29 | 20 6f 66 20 74 68 65 20 |rgument)| of the |
|00001260| 63 6f 6d 6d 61 6e 64 73 | 20 40 7a 5a 74 54 66 46 |commands| @zZtTfF|
|00001270| 5b 5d 72 6d 27 60 22 76 | 20 69 73 0a 58 6e 6f 74 |[]rm'`"v| is.Xnot|
|00001280| 20 6d 61 70 70 65 64 2e | 20 54 68 69 73 20 77 61 | mapped.| This wa|
|00001290| 73 20 64 6f 6e 65 20 74 | 6f 20 62 65 20 61 62 6c |s done t|o be abl|
|000012a0| 65 20 74 6f 20 75 73 65 | 20 61 6c 6c 20 74 68 65 |e to use| all the|
|000012b0| 20 6e 61 6d 65 64 20 72 | 65 67 69 73 74 65 72 73 | named r|egisters|
|000012c0| 20 61 6e 64 0a 58 6d 61 | 72 6b 73 2c 20 65 76 65 | and.Xma|rks, eve|
|000012d0| 6e 20 77 68 65 6e 20 74 | 68 65 20 63 6f 6d 6d 61 |n when t|he comma|
|000012e0| 6e 64 20 77 69 74 68 20 | 74 68 65 20 73 61 6d 65 |nd with |the same|
|000012f0| 20 6e 61 6d 65 20 68 61 | 73 20 62 65 65 6e 20 6d | name ha|s been m|
|00001300| 61 70 70 65 64 2e 0a 58 | 0a 58 53 6f 6d 65 20 65 |apped..X|.XSome e|
|00001310| 78 61 6d 70 6c 65 73 20 | 28 67 69 76 65 6e 20 61 |xamples |(given a|
|00001320| 73 20 79 6f 75 20 74 79 | 70 65 20 74 68 65 6d 3b |s you ty|pe them;|
|00001330| 20 65 2e 67 2e 20 74 68 | 65 20 22 5e 56 22 20 69 | e.g. th|e "^V" i|
|00001340| 73 20 43 54 52 4c 2d 56 | 20 77 68 69 63 68 20 79 |s CTRL-V| which y|
|00001350| 6f 75 20 0a 58 74 79 70 | 65 2c 20 62 75 74 20 77 |ou .Xtyp|e, but w|
|00001360| 69 6c 6c 20 6e 6f 74 20 | 73 68 6f 77 20 75 70 20 |ill not |show up |
|00001370| 6f 6e 20 74 68 65 20 73 | 63 72 65 65 6e 29 3a 0a |on the s|creen):.|
|00001380| 58 0a 58 09 3a 6d 61 70 | 20 67 20 2f 66 6f 6f 5e |X.X.:map| g /foo^|
|00001390| 56 5e 4d 63 77 62 61 72 | 5e 56 5e 5b 09 28 72 65 |V^Mcwbar|^V^[.(re|
|000013a0| 70 6c 61 63 65 20 6e 65 | 78 74 20 22 66 6f 6f 22 |place ne|xt "foo"|
|000013b0| 20 62 79 20 22 62 61 72 | 22 29 0a 58 09 3a 6d 61 | by "bar|").X.:ma|
|000013c0| 70 21 20 71 71 20 71 75 | 61 64 72 69 6c 6c 69 6f |p! qq qu|adrillio|
|000013d0| 6e 20 71 75 65 73 74 69 | 6f 6e 73 0a 58 0a 58 56 |n questi|ons.X.XV|
|000013e0| 69 6d 20 77 69 6c 6c 20 | 63 6f 6d 70 61 72 65 20 |im will |compare |
|000013f0| 77 68 61 74 20 79 6f 75 | 20 74 79 70 65 20 77 69 |what you| type wi|
|00001400| 74 68 20 74 68 65 20 73 | 74 61 72 74 20 6f 66 20 |th the s|tart of |
|00001410| 61 20 6d 61 70 70 65 64 | 20 73 65 71 75 65 6e 63 |a mapped| sequenc|
|00001420| 65 2e 20 49 66 20 74 68 | 65 72 65 0a 58 69 73 20 |e. If th|ere.Xis |
|00001430| 61 6e 20 69 6e 63 6f 6d | 70 6c 65 74 65 20 6d 61 |an incom|plete ma|
|00001440| 74 63 68 2c 20 69 74 20 | 77 69 6c 6c 20 67 65 74 |tch, it |will get|
|00001450| 20 6d 6f 72 65 20 63 68 | 61 72 61 63 74 65 72 73 | more ch|aracters|
|00001460| 20 75 6e 74 69 6c 20 74 | 68 65 72 65 20 65 69 74 | until t|here eit|
|00001470| 68 65 72 20 69 73 20 61 | 0a 58 63 6f 6d 70 6c 65 |her is a|.Xcomple|
|00001480| 74 65 20 6d 61 74 63 68 | 20 6f 72 20 75 6e 74 69 |te match| or unti|
|00001490| 6c 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 6d 61 |l there |is no ma|
|000014a0| 74 63 68 20 61 74 20 61 | 6c 6c 2e 20 45 78 61 6d |tch at a|ll. Exam|
|000014b0| 70 6c 65 3a 20 49 66 20 | 79 6f 75 20 6d 61 70 21 |ple: If |you map!|
|000014c0| 20 22 71 71 22 2c 0a 58 | 74 68 65 20 66 69 72 73 | "qq",.X|the firs|
|000014d0| 74 20 3c 71 3e 20 77 69 | 6c 6c 20 6e 6f 74 20 61 |t <q> wi|ll not a|
|000014e0| 70 70 65 61 72 20 6f 6e | 20 74 68 65 20 73 63 72 |ppear on| the scr|
|000014f0| 65 65 6e 20 75 6e 74 69 | 6c 20 79 6f 75 20 74 79 |een unti|l you ty|
|00001500| 70 65 20 61 6e 6f 74 68 | 65 72 0a 58 63 68 61 72 |pe anoth|er.Xchar|
|00001510| 61 63 74 65 72 2e 20 54 | 68 69 73 20 69 73 20 62 |acter. T|his is b|
|00001520| 65 63 61 75 73 65 20 56 | 69 6d 20 63 61 6e 6e 6f |ecause V|im canno|
|00001530| 74 20 6b 6e 6f 77 20 69 | 66 20 74 68 65 20 6e 65 |t know i|f the ne|
|00001540| 78 74 20 63 68 61 72 61 | 63 74 65 72 20 77 69 6c |xt chara|cter wil|
|00001550| 6c 20 62 65 20 61 0a 58 | 3c 71 3e 20 6f 72 20 6e |l be a.X|<q> or n|
|00001560| 6f 74 2e 20 49 66 20 79 | 6f 75 20 73 65 74 20 74 |ot. If y|ou set t|
|00001570| 68 65 20 27 74 69 6d 65 | 6f 75 74 27 20 6f 70 74 |he 'time|out' opt|
|00001580| 69 6f 6e 20 28 77 68 69 | 63 68 20 69 73 20 74 68 |ion (whi|ch is th|
|00001590| 65 20 64 65 66 61 75 6c | 74 29 20 56 69 6d 20 77 |e defaul|t) Vim w|
|000015a0| 69 6c 6c 0a 58 6f 6e 6c | 79 20 77 61 69 74 20 66 |ill.Xonl|y wait f|
|000015b0| 6f 72 20 6f 6e 65 20 73 | 65 63 6f 6e 64 20 28 6f |or one s|econd (o|
|000015c0| 72 20 61 73 20 6c 6f 6e | 67 20 61 73 20 73 70 65 |r as lon|g as spe|
|000015d0| 63 69 66 69 65 64 20 77 | 69 74 68 20 74 68 65 20 |cified w|ith the |
|000015e0| 27 74 69 6d 65 6f 75 74 | 6c 65 6e 27 0a 58 6f 70 |'timeout|len'.Xop|
|000015f0| 74 69 6f 6e 29 2e 20 41 | 66 74 65 72 20 74 68 61 |tion). A|fter tha|
|00001600| 74 20 69 74 20 61 73 73 | 75 6d 65 73 20 74 68 61 |t it ass|umes tha|
|00001610| 74 20 74 68 65 20 3c 71 | 3e 20 69 73 20 74 6f 20 |t the <q|> is to |
|00001620| 62 65 20 69 6e 74 65 72 | 70 72 65 74 65 64 20 61 |be inter|preted a|
|00001630| 73 20 73 75 63 68 2e 20 | 49 66 0a 58 74 79 70 65 |s such. |If.Xtype|
|00001640| 20 73 6c 6f 77 6c 79 2c | 20 6f 72 20 79 6f 75 72 | slowly,| or your|
|00001650| 20 73 79 73 74 65 6d 20 | 69 73 20 73 6c 6f 77 2c | system |is slow,|
|00001660| 20 72 65 73 65 74 20 74 | 68 65 20 27 74 69 6d 65 | reset t|he 'time|
|00001670| 6f 75 74 27 20 6f 70 74 | 69 6f 6e 2e 20 54 68 65 |out' opt|ion. The|
|00001680| 6e 20 79 6f 75 0a 58 6d | 69 67 68 74 20 77 61 6e |n you.Xm|ight wan|
|00001690| 74 20 74 6f 20 73 65 74 | 20 74 68 65 20 27 74 74 |t to set| the 'tt|
|000016a0| 69 6d 65 6f 75 74 27 20 | 6f 70 74 69 6f 6e 2e 20 |imeout' |option. |
|000016b0| 53 65 65 20 74 68 65 20 | 22 4f 70 74 69 6f 6e 73 |See the |"Options|
|000016c0| 22 20 63 68 61 70 74 65 | 72 2e 0a 58 0a 58 49 66 |" chapte|r..X.XIf|
|000016d0| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 65 78 63 | you wan|t to exc|
|000016e0| 68 61 6e 67 65 20 74 68 | 65 20 6d 65 61 6e 69 6e |hange th|e meanin|
|000016f0| 67 20 6f 66 20 74 77 6f | 20 6b 65 79 73 20 79 6f |g of two| keys yo|
|00001700| 75 20 73 68 6f 75 6c 64 | 20 75 73 65 20 74 68 65 |u should| use the|
|00001710| 20 3a 6e 6f 72 65 6d 61 | 70 20 0a 58 63 6f 6d 6d | :norema|p .Xcomm|
|00001720| 61 6e 64 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |and. For| example|
|00001730| 3a 0a 58 09 3a 6e 6f 72 | 65 6d 61 70 20 6b 20 6a |:.X.:nor|emap k j|
|00001740| 0a 58 09 3a 6e 6f 72 65 | 6d 61 70 20 6a 20 6b 0a |.X.:nore|map j k.|
|00001750| 58 54 68 69 73 20 77 69 | 6c 6c 20 65 78 63 68 61 |XThis wi|ll excha|
|00001760| 6e 67 65 20 74 68 65 20 | 63 75 72 73 6f 72 20 75 |nge the |cursor u|
|00001770| 70 20 61 6e 64 20 64 6f | 77 6e 20 63 6f 6d 6d 61 |p and do|wn comma|
|00001780| 6e 64 73 2e 20 57 69 74 | 68 20 74 68 65 20 6e 6f |nds. Wit|h the no|
|00001790| 72 6d 61 6c 20 3a 6d 61 | 70 20 0a 58 63 6f 6d 6d |rmal :ma|p .Xcomm|
|000017a0| 61 6e 64 2c 20 77 68 65 | 6e 20 74 68 65 20 27 72 |and, whe|n the 'r|
|000017b0| 65 6d 61 70 27 20 6f 70 | 74 69 6f 6e 20 69 73 20 |emap' op|tion is |
|000017c0| 73 65 74 2c 20 6d 61 70 | 70 69 6e 67 20 74 61 6b |set, map|ping tak|
|000017d0| 65 73 20 70 6c 61 63 65 | 20 75 6e 74 69 6c 20 74 |es place| until t|
|000017e0| 68 65 20 74 65 78 74 20 | 0a 58 69 73 20 66 6f 75 |he text |.Xis fou|
|000017f0| 6e 64 20 6e 6f 74 20 74 | 6f 20 62 65 20 61 20 70 |nd not t|o be a p|
|00001800| 61 72 74 20 6f 66 20 61 | 20 7b 6c 68 73 7d 2e 20 |art of a| {lhs}. |
|00001810| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 69 66 20 |For exam|ple, if |
|00001820| 79 6f 75 20 75 73 65 3a | 0a 58 09 3a 6d 61 70 20 |you use:|.X.:map |
|00001830| 78 20 79 0a 58 09 3a 6d | 61 70 20 79 20 78 0a 58 |x y.X.:m|ap y x.X|
|00001840| 56 69 6d 20 77 69 6c 6c | 20 72 65 70 6c 61 63 65 |Vim will| replace|
|00001850| 20 78 20 62 79 20 79 2c | 20 61 6e 64 20 74 68 65 | x by y,| and the|
|00001860| 6e 20 79 20 62 79 20 78 | 2c 20 65 74 63 2e 20 57 |n y by x|, etc. W|
|00001870| 68 65 6e 20 74 68 69 73 | 20 68 61 73 20 68 61 70 |hen this| has hap|
|00001880| 70 65 6e 65 64 20 31 30 | 30 30 20 0a 58 74 69 6d |pened 10|00 .Xtim|
|00001890| 65 73 2c 20 56 69 6d 20 | 77 69 6c 6c 20 67 69 76 |es, Vim |will giv|
|000018a0| 65 20 61 6e 20 65 72 72 | 6f 72 20 6d 65 73 73 61 |e an err|or messa|
|000018b0| 67 65 2e 0a 58 0a 58 53 | 65 65 20 74 68 65 20 66 |ge..X.XS|ee the f|
|000018c0| 69 6c 65 20 22 69 6e 64 | 65 78 22 20 66 6f 72 20 |ile "ind|ex" for |
|000018d0| 6b 65 79 73 20 74 68 61 | 74 20 61 72 65 20 6e 6f |keys tha|t are no|
|000018e0| 74 20 75 73 65 64 20 61 | 6e 64 20 74 68 75 73 20 |t used a|nd thus |
|000018f0| 63 61 6e 20 62 65 20 6d | 61 70 70 65 64 20 0a 58 |can be m|apped .X|
|00001900| 77 69 74 68 6f 75 74 20 | 6c 6f 73 69 6e 67 20 61 |without |losing a|
|00001910| 6e 79 20 62 75 69 6c 74 | 69 6e 20 66 75 6e 63 74 |ny built|in funct|
|00001920| 69 6f 6e 2e 0a 58 0a 58 | 49 66 20 79 6f 75 20 69 |ion..X.X|If you i|
|00001930| 6e 63 6c 75 64 65 20 61 | 6e 20 75 6e 64 6f 20 63 |nclude a|n undo c|
|00001940| 6f 6d 6d 61 6e 64 20 69 | 6e 73 69 64 65 20 61 20 |ommand i|nside a |
|00001950| 6d 61 70 70 65 64 20 73 | 65 71 75 65 6e 63 65 2c |mapped s|equence,|
|00001960| 20 74 68 69 73 20 77 69 | 6c 6c 20 62 72 69 6e 67 | this wi|ll bring|
|00001970| 20 74 68 65 20 0a 58 74 | 65 78 74 20 62 61 63 6b | the .Xt|ext back|
|00001980| 20 69 6e 20 74 68 65 20 | 73 74 61 74 65 20 62 65 | in the |state be|
|00001990| 66 6f 72 65 20 65 78 65 | 63 75 74 69 6e 67 20 74 |fore exe|cuting t|
|000019a0| 68 65 20 6d 61 63 72 6f | 2e 20 54 68 69 73 20 69 |he macro|. This i|
|000019b0| 73 20 63 6f 6d 70 61 74 | 69 62 6c 65 20 77 69 74 |s compat|ible wit|
|000019c0| 68 20 0a 58 74 68 65 20 | 6f 72 69 67 69 6e 61 6c |h .Xthe |original|
|000019d0| 20 76 69 2c 20 61 73 20 | 6c 6f 6e 67 20 61 73 20 | vi, as |long as |
|000019e0| 74 68 65 72 65 20 69 73 | 20 6f 6e 6c 79 20 6f 6e |there is| only on|
|000019f0| 65 20 75 6e 64 6f 20 63 | 6f 6d 6d 61 6e 64 20 69 |e undo c|ommand i|
|00001a00| 6e 20 74 68 65 20 6d 61 | 70 70 65 64 20 0a 58 73 |n the ma|pped .Xs|
|00001a10| 65 71 75 65 6e 63 65 20 | 28 68 61 76 69 6e 67 20 |equence |(having |
|00001a20| 74 77 6f 20 75 6e 64 6f | 20 63 6f 6d 6d 61 6e 64 |two undo| command|
|00001a30| 73 20 69 6e 20 61 20 6d | 61 70 70 65 64 20 73 65 |s in a m|apped se|
|00001a40| 71 75 65 6e 63 65 20 64 | 69 64 20 6e 6f 74 20 6d |quence d|id not m|
|00001a50| 61 6b 65 20 73 65 6e 73 | 65 20 0a 58 69 6e 20 74 |ake sens|e .Xin t|
|00001a60| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 76 69 2c 20 |he origi|nal vi, |
|00001a70| 79 6f 75 20 77 6f 75 6c | 64 20 67 65 74 20 62 61 |you woul|d get ba|
|00001a80| 63 6b 20 74 68 65 20 74 | 65 78 74 20 62 65 66 6f |ck the t|ext befo|
|00001a90| 72 65 20 74 68 65 20 66 | 69 72 73 74 20 75 6e 64 |re the f|irst und|
|00001aa0| 6f 29 2e 0a 58 0a 58 54 | 68 65 72 65 20 61 72 65 |o)..X.XT|here are|
|00001ab0| 20 74 77 6f 20 77 61 79 | 73 20 74 6f 20 6d 61 70 | two way|s to map|
|00001ac0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 6b 65 79 3a | a funct|ion key:|
|00001ad0| 0a 58 31 2e 20 54 68 65 | 20 76 69 2d 63 6f 6d 70 |.X1. The| vi-comp|
|00001ae0| 61 74 69 62 6c 65 20 6d | 65 74 68 6f 64 3a 20 4d |atible m|ethod: M|
|00001af0| 61 70 20 74 68 65 20 6b | 65 79 20 63 6f 64 65 2e |ap the k|ey code.|
|00001b00| 20 4f 66 74 65 6e 20 74 | 68 69 73 20 69 73 20 61 | Often t|his is a|
|00001b10| 20 73 65 71 75 65 6e 63 | 65 20 74 68 61 74 0a 58 | sequenc|e that.X|
|00001b20| 20 20 20 73 74 61 72 74 | 73 20 77 69 74 68 20 3c | start|s with <|
|00001b30| 45 53 43 3e 2e 20 54 6f | 20 65 6e 74 65 72 20 61 |ESC>. To| enter a|
|00001b40| 20 6d 61 70 70 69 6e 67 | 20 6c 69 6b 65 20 74 68 | mapping| like th|
|00001b50| 69 73 20 79 6f 75 20 74 | 79 70 65 20 22 3a 6d 61 |is you t|ype ":ma|
|00001b60| 70 20 22 20 61 6e 64 20 | 74 68 65 6e 0a 58 20 20 |p " and |then.X |
|00001b70| 20 79 6f 75 20 68 61 76 | 65 20 74 6f 20 74 79 70 | you hav|e to typ|
|00001b80| 65 20 43 54 52 4c 2d 56 | 20 62 65 66 6f 72 65 20 |e CTRL-V| before |
|00001b90| 68 69 74 74 69 6e 67 20 | 74 68 65 20 66 75 6e 63 |hitting |the func|
|00001ba0| 74 69 6f 6e 20 6b 65 79 | 2e 0a 58 32 2e 20 54 68 |tion key|..X2. Th|
|00001bb0| 65 20 73 65 63 6f 6e 64 | 20 6d 65 74 68 6f 64 20 |e second| method |
|00001bc0| 69 73 20 74 6f 20 75 73 | 65 20 74 68 65 20 69 6e |is to us|e the in|
|00001bd0| 74 65 72 6e 61 6c 20 63 | 6f 64 65 20 66 6f 72 20 |ternal c|ode for |
|00001be0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 6b 65 79 |the func|tion key|
|00001bf0| 2e 20 54 6f 0a 58 20 20 | 20 65 6e 74 65 72 20 73 |. To.X | enter s|
|00001c00| 75 63 68 20 61 20 6d 61 | 70 70 69 6e 67 20 6a 75 |uch a ma|pping ju|
|00001c10| 73 74 20 68 69 74 20 74 | 68 65 20 66 75 6e 63 74 |st hit t|he funct|
|00001c20| 69 6f 6e 20 6b 65 79 2c | 20 77 69 74 68 6f 75 74 |ion key,| without|
|00001c30| 20 43 54 52 4c 2d 56 2c | 20 6f 72 20 75 73 65 0a | CTRL-V,| or use.|
|00001c40| 58 20 20 20 74 68 65 20 | 66 6f 72 6d 20 22 23 31 |X the |form "#1|
|00001c50| 22 2c 20 22 23 32 22 2c | 20 2e 2e 20 22 23 39 22 |", "#2",| .. "#9"|
|00001c60| 2c 20 22 23 30 22 2e 20 | 4f 6e 6c 79 20 74 68 65 |, "#0". |Only the|
|00001c70| 20 66 69 72 73 74 20 74 | 65 6e 20 66 75 6e 63 74 | first t|en funct|
|00001c80| 69 6f 6e 20 6b 65 79 73 | 20 63 61 6e 0a 58 20 20 |ion keys| can.X |
|00001c90| 20 62 65 20 75 73 65 64 | 20 74 68 69 73 20 77 61 | be used| this wa|
|00001ca0| 79 20 28 22 23 30 22 20 | 72 65 66 65 72 73 20 74 |y ("#0" |refers t|
|00001cb0| 6f 20 66 75 6e 63 74 69 | 6f 6e 20 6b 65 79 20 31 |o functi|on key 1|
|00001cc0| 30 2c 20 64 65 66 69 6e | 65 64 20 77 69 74 68 20 |0, defin|ed with |
|00001cd0| 6f 70 74 69 6f 6e 0a 58 | 20 20 20 27 74 5f 66 31 |option.X| 't_f1|
|00001ce0| 30 27 2c 20 77 68 69 63 | 68 20 6d 61 79 20 62 65 |0', whic|h may be|
|00001cf0| 20 66 75 6e 63 74 69 6f | 6e 20 6b 65 79 20 7a 65 | functio|n key ze|
|00001d00| 72 6f 20 6f 6e 20 73 6f | 6d 65 20 6b 65 79 62 6f |ro on so|me keybo|
|00001d10| 61 72 64 73 29 2e 0a 58 | 54 68 65 20 61 64 76 61 |ards)..X|The adva|
|00001d20| 6e 74 61 67 65 20 6f 66 | 20 74 68 65 20 73 65 63 |ntage of| the sec|
|00001d30| 6f 6e 64 20 6d 65 74 68 | 6f 64 20 69 73 20 74 68 |ond meth|od is th|
|00001d40| 61 74 20 74 68 65 20 6d | 61 70 70 69 6e 67 20 77 |at the m|apping w|
|00001d50| 69 6c 6c 20 6d 6f 73 74 | 6c 79 20 77 6f 72 6b 20 |ill most|ly work |
|00001d60| 6f 6e 0a 58 64 69 66 66 | 65 72 65 6e 74 20 74 65 |on.Xdiff|erent te|
|00001d70| 72 6d 69 6e 61 6c 73 20 | 77 69 74 68 6f 75 74 20 |rminals |without |
|00001d80| 6d 6f 64 69 66 69 63 61 | 74 69 6f 6e 20 28 74 68 |modifica|tion (th|
|00001d90| 65 20 66 75 6e 63 74 69 | 6f 6e 20 6b 65 79 20 77 |e functi|on key w|
|00001da0| 69 6c 6c 20 62 65 0a 58 | 74 72 61 6e 73 6c 61 74 |ill be.X|translat|
|00001db0| 65 64 20 69 6e 74 6f 20 | 74 68 65 20 73 61 6d 65 |ed into |the same|
|00001dc0| 20 69 6e 74 65 72 6e 61 | 6c 20 63 6f 64 65 2c 20 | interna|l code, |
|00001dd0| 6e 6f 20 6d 61 74 74 65 | 72 20 77 68 61 74 20 74 |no matte|r what t|
|00001de0| 65 72 6d 69 6e 61 6c 20 | 79 6f 75 20 61 72 65 0a |erminal |you are.|
|00001df0| 58 75 73 69 6e 67 2e 20 | 54 68 65 20 74 65 72 6d |Xusing. |The term|
|00001e00| 63 61 70 20 6d 75 73 74 | 20 62 65 20 63 6f 72 72 |cap must| be corr|
|00001e10| 65 63 74 20 66 6f 72 20 | 74 68 69 73 20 74 6f 20 |ect for |this to |
|00001e20| 77 6f 72 6b 2c 20 61 6e | 64 20 79 6f 75 20 6d 75 |work, an|d you mu|
|00001e30| 73 74 20 75 73 65 20 74 | 68 65 0a 58 73 61 6d 65 |st use t|he.Xsame|
|00001e40| 20 6d 61 70 70 69 6e 67 | 73 29 2e 0a 58 0a 58 44 | mapping|s)..X.XD|
|00001e50| 45 54 41 49 4c 3a 20 56 | 69 6d 20 66 69 72 73 74 |ETAIL: V|im first|
|00001e60| 20 63 68 65 63 6b 73 20 | 69 66 20 61 20 73 65 71 | checks |if a seq|
|00001e70| 75 65 6e 63 65 20 66 72 | 6f 6d 20 74 68 65 20 6b |uence fr|om the k|
|00001e80| 65 79 62 6f 61 72 64 20 | 69 73 20 6d 61 70 70 65 |eyboard |is mappe|
|00001e90| 64 2e 20 49 66 20 69 74 | 0a 58 69 73 6e 27 74 20 |d. If it|.Xisn't |
|00001ea0| 74 68 65 20 74 65 72 6d | 69 6e 61 6c 20 6b 65 79 |the term|inal key|
|00001eb0| 20 63 6f 64 65 73 20 61 | 72 65 20 74 72 69 65 64 | codes a|re tried|
|00001ec0| 20 28 73 65 65 20 73 65 | 63 74 69 6f 6e 20 32 30 | (see se|ction 20|
|00001ed0| 2e 32 29 2e 20 49 66 20 | 61 20 74 65 72 6d 69 6e |.2). If |a termin|
|00001ee0| 61 6c 0a 58 63 6f 64 65 | 20 69 73 20 66 6f 75 6e |al.Xcode| is foun|
|00001ef0| 64 20 69 74 20 69 73 20 | 72 65 70 6c 61 63 65 64 |d it is |replaced|
|00001f00| 20 62 79 20 74 68 65 20 | 69 6e 74 65 72 6e 61 6c | by the |internal|
|00001f10| 20 63 6f 64 65 2e 20 54 | 68 65 6e 20 74 68 65 20 | code. T|hen the |
|00001f20| 63 68 65 63 6b 20 66 6f | 72 20 61 0a 58 6d 61 70 |check fo|r a.Xmap|
|00001f30| 70 69 6e 67 20 69 73 20 | 64 6f 6e 65 20 61 67 61 |ping is |done aga|
|00001f40| 69 6e 20 28 73 6f 20 79 | 6f 75 20 63 61 6e 20 6d |in (so y|ou can m|
|00001f50| 61 70 20 61 6e 20 69 6e | 74 65 72 6e 61 6c 20 63 |ap an in|ternal c|
|00001f60| 6f 64 65 20 74 6f 20 73 | 6f 6d 65 74 68 69 6e 67 |ode to s|omething|
|00001f70| 20 65 6c 73 65 29 2e 0a | 58 57 68 61 74 20 69 73 | else)..|XWhat is|
|00001f80| 20 77 72 69 74 74 65 6e | 20 69 6e 74 6f 20 74 68 | written| into th|
|00001f90| 65 20 73 63 72 69 70 74 | 20 66 69 6c 65 20 64 65 |e script| file de|
|00001fa0| 70 65 6e 64 73 20 6f 6e | 20 77 68 61 74 20 69 73 |pends on| what is|
|00001fb0| 20 72 65 63 6f 67 6e 69 | 7a 65 64 2e 20 49 66 20 | recogni|zed. If |
|00001fc0| 74 68 65 0a 58 74 65 72 | 6d 69 6e 61 6c 20 6b 65 |the.Xter|minal ke|
|00001fd0| 79 20 63 6f 64 65 20 77 | 61 73 20 72 65 63 6f 67 |y code w|as recog|
|00001fe0| 6e 69 7a 65 64 20 61 73 | 20 61 20 6d 61 70 70 69 |nized as| a mappi|
|00001ff0| 6e 67 20 74 68 65 20 6b | 65 79 20 63 6f 64 65 20 |ng the k|ey code |
|00002000| 69 74 73 65 6c 66 20 69 | 73 20 77 72 69 74 74 65 |itself i|s writte|
|00002010| 6e 0a 58 74 6f 20 74 68 | 65 20 73 63 72 69 70 74 |n.Xto th|e script|
|00002020| 20 66 69 6c 65 2e 20 49 | 66 20 69 74 20 77 61 73 | file. I|f it was|
|00002030| 20 72 65 63 6f 67 6e 69 | 7a 65 64 20 61 73 20 61 | recogni|zed as a|
|00002040| 20 74 65 72 6d 69 6e 61 | 6c 20 63 6f 64 65 20 74 | termina|l code t|
|00002050| 68 65 20 69 6e 74 65 72 | 6e 61 6c 0a 58 63 6f 64 |he inter|nal.Xcod|
|00002060| 65 20 69 73 20 77 72 69 | 74 74 65 6e 20 74 6f 20 |e is wri|tten to |
|00002070| 74 68 65 20 73 63 72 69 | 70 74 20 66 69 6c 65 2e |the scri|pt file.|
|00002080| 0a 58 0a 58 0a 58 09 31 | 38 2e 20 52 65 63 6f 76 |.X.X.X.1|8. Recov|
|00002090| 65 72 79 20 61 66 74 65 | 72 20 61 20 63 72 61 73 |ery afte|r a cras|
|000020a0| 68 2e 0a 58 0a 58 59 6f | 75 20 68 61 76 65 20 73 |h..X.XYo|u have s|
|000020b0| 70 65 6e 74 20 73 65 76 | 65 72 61 6c 20 68 6f 75 |pent sev|eral hou|
|000020c0| 72 73 20 74 79 70 69 6e | 67 20 69 6e 20 74 68 61 |rs typin|g in tha|
|000020d0| 74 20 74 65 78 74 20 74 | 68 61 74 20 68 61 73 20 |t text t|hat has |
|000020e0| 74 6f 20 62 65 20 66 69 | 6e 69 73 68 65 64 0a 58 |to be fi|nished.X|
|000020f0| 6e 65 78 74 20 6d 6f 72 | 6e 69 6e 67 2c 20 61 6e |next mor|ning, an|
|00002100| 64 20 74 68 65 6e 20 64 | 69 73 61 73 74 65 72 20 |d then d|isaster |
|00002110| 73 74 72 69 6b 65 73 3a | 20 59 6f 75 72 20 63 6f |strikes:| Your co|
|00002120| 6d 70 75 74 65 72 20 63 | 72 61 73 68 65 73 2e 0a |mputer c|rashes..|
|00002130| 58 0a 58 09 09 09 44 4f | 4e 27 54 20 50 41 4e 49 |X.X...DO|N'T PANI|
|00002140| 43 21 0a 58 0a 58 0a 58 | 31 38 2e 31 20 54 68 65 |C!.X.X.X|18.1 The|
|00002150| 20 73 77 61 70 20 66 69 | 6c 65 0a 58 0a 58 56 69 | swap fi|le.X.XVi|
|00002160| 6d 20 73 74 6f 72 65 73 | 20 74 68 65 20 74 68 69 |m stores| the thi|
|00002170| 6e 67 73 20 79 6f 75 20 | 63 68 61 6e 67 65 64 20 |ngs you |changed |
|00002180| 69 6e 20 61 20 73 77 61 | 70 20 66 69 6c 65 2e 20 |in a swa|p file. |
|00002190| 55 73 69 6e 67 20 74 68 | 65 20 6f 72 69 67 69 6e |Using th|e origin|
|000021a0| 61 6c 20 66 69 6c 65 0a | 58 79 6f 75 20 73 74 61 |al file.|Xyou sta|
|000021b0| 72 74 65 64 20 66 72 6f | 6d 20 70 6c 75 73 20 74 |rted fro|m plus t|
|000021c0| 68 65 20 73 77 61 70 20 | 66 69 6c 65 20 79 6f 75 |he swap |file you|
|000021d0| 20 63 61 6e 20 6d 6f 73 | 74 6c 79 20 72 65 63 6f | can mos|tly reco|
|000021e0| 76 65 72 20 79 6f 75 72 | 20 77 6f 72 6b 2e 20 59 |ver your| work. Y|
|000021f0| 6f 75 0a 58 63 61 6e 20 | 73 65 65 20 74 68 65 20 |ou.Xcan |see the |
|00002200| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 63 75 72 72 |name of |the curr|
|00002210| 65 6e 74 20 73 77 61 70 | 20 66 69 6c 65 20 62 65 |ent swap| file be|
|00002220| 69 6e 67 20 75 73 65 64 | 20 77 69 74 68 20 74 68 |ing used| with th|
|00002230| 65 20 63 6f 6d 6d 61 6e | 64 3a 0a 58 0a 58 09 3a |e comman|d:.X.X.:|
|00002240| 73 77 5b 61 70 6e 61 6d | 65 5d 0a 58 0a 58 54 68 |sw[apnam|e].X.XTh|
|00002250| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 73 77 |e name o|f the sw|
|00002260| 61 70 20 66 69 6c 65 20 | 69 73 20 6e 6f 72 6d 61 |ap file |is norma|
|00002270| 6c 6c 79 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 |lly the |same as |
|00002280| 74 68 65 20 66 69 6c 65 | 20 79 6f 75 20 61 72 65 |the file| you are|
|00002290| 20 65 64 69 74 69 6e 67 | 2c 20 0a 58 77 69 74 68 | editing|, .Xwith|
|000022a0| 20 74 68 65 20 65 78 74 | 65 6e 73 69 6f 6e 20 22 | the ext|ension "|
|000022b0| 2e 73 77 70 22 2e 20 4f | 6e 20 4d 53 44 4f 53 20 |.swp". O|n MSDOS |
|000022c0| 6d 61 63 68 69 6e 65 73 | 20 61 6e 64 20 77 68 65 |machines| and whe|
|000022d0| 6e 20 74 68 65 20 27 73 | 68 6f 72 74 6e 61 6d 65 |n the 's|hortname|
|000022e0| 27 20 6f 70 74 69 6f 6e | 20 0a 58 69 73 20 73 65 |' option| .Xis se|
|000022f0| 74 2c 20 61 6e 79 20 3c | 2e 3e 20 69 6e 20 74 68 |t, any <|.> in th|
|00002300| 65 20 6f 72 69 67 69 6e | 61 6c 20 66 69 6c 65 20 |e origin|al file |
|00002310| 6e 61 6d 65 20 69 73 20 | 72 65 70 6c 61 63 65 64 |name is |replaced|
|00002320| 20 62 79 20 3c 5f 3e 2e | 20 49 66 20 74 68 69 73 | by <_>.| If this|
|00002330| 20 66 69 6c 65 0a 58 61 | 6c 72 65 61 64 79 20 65 | file.Xa|lready e|
|00002340| 78 69 73 74 73 20 28 65 | 2e 67 2e 20 77 68 65 6e |xists (e|.g. when|
|00002350| 20 79 6f 75 20 61 72 65 | 20 72 65 63 6f 76 65 72 | you are| recover|
|00002360| 69 6e 67 20 66 72 6f 6d | 20 61 20 63 72 61 73 68 |ing from| a crash|
|00002370| 29 20 61 20 77 61 72 6e | 69 6e 67 20 69 73 0a 58 |) a warn|ing is.X|
|00002380| 67 69 76 65 6e 20 61 6e | 64 20 61 6e 6f 74 68 65 |given an|d anothe|
|00002390| 72 20 65 78 74 65 6e 73 | 69 6f 6e 20 69 73 20 75 |r extens|ion is u|
|000023a0| 73 65 64 2c 20 22 2e 73 | 77 6f 22 2c 20 22 2e 73 |sed, ".s|wo", ".s|
|000023b0| 77 6e 22 2c 20 65 74 63 | 2e 20 41 6e 20 65 78 69 |wn", etc|. An exi|
|000023c0| 73 74 69 6e 67 20 66 69 | 6c 65 0a 58 77 69 6c 6c |sting fi|le.Xwill|
|000023d0| 20 6e 65 76 65 72 20 62 | 65 20 6f 76 65 72 77 72 | never b|e overwr|
|000023e0| 69 74 74 65 6e 2e 20 54 | 68 65 20 73 77 61 70 20 |itten. T|he swap |
|000023f0| 66 69 6c 65 20 69 73 20 | 64 65 6c 65 74 65 64 20 |file is |deleted |
|00002400| 61 73 20 73 6f 6f 6e 20 | 61 73 20 56 69 6d 20 73 |as soon |as Vim s|
|00002410| 74 6f 70 73 0a 58 65 64 | 69 74 69 6e 67 20 74 68 |tops.Xed|iting th|
|00002420| 65 20 66 69 6c 65 2e 0a | 58 0a 58 54 65 63 68 6e |e file..|X.XTechn|
|00002430| 69 63 61 6c 3a 20 54 68 | 65 20 72 65 70 6c 61 63 |ical: Th|e replac|
|00002440| 65 6d 65 6e 74 20 6f 66 | 20 3c 2e 3e 20 62 79 20 |ement of| <.> by |
|00002450| 3c 5f 3e 20 69 73 20 64 | 6f 6e 65 20 74 6f 20 61 |<_> is d|one to a|
|00002460| 76 6f 69 64 20 70 72 6f | 62 6c 65 6d 73 20 77 69 |void pro|blems wi|
|00002470| 74 68 20 0a 58 09 20 20 | 20 4d 53 44 4f 53 20 63 |th .X. | MSDOS c|
|00002480| 6f 6d 70 61 74 69 62 6c | 65 20 66 69 6c 65 73 79 |ompatibl|e filesy|
|00002490| 73 74 65 6d 73 20 28 65 | 2e 67 2e 20 63 72 6f 73 |stems (e|.g. cros|
|000024a0| 73 64 6f 73 2c 20 6d 75 | 6c 74 69 64 6f 73 29 2e |sdos, mu|ltidos).|
|000024b0| 20 49 66 20 56 69 6d 20 | 69 73 20 0a 58 09 20 20 | If Vim |is .X. |
|000024c0| 20 61 62 6c 65 20 74 6f | 20 64 65 74 65 63 74 20 | able to| detect |
|000024d0| 74 68 61 74 20 74 68 65 | 20 66 69 6c 65 20 69 73 |that the| file is|
|000024e0| 20 6f 6e 20 61 6e 20 4d | 53 44 4f 53 2d 6c 69 6b | on an M|SDOS-lik|
|000024f0| 65 20 66 69 6c 65 73 79 | 73 74 65 6d 2c 20 61 20 |e filesy|stem, a |
|00002500| 0a 58 09 20 20 20 66 6c | 61 67 20 69 73 20 73 65 |.X. fl|ag is se|
|00002510| 74 20 74 68 61 74 20 68 | 61 73 20 74 68 65 20 73 |t that h|as the s|
|00002520| 61 6d 65 20 65 66 66 65 | 63 74 20 61 73 20 74 68 |ame effe|ct as th|
|00002530| 65 20 27 73 68 6f 72 74 | 6e 61 6d 65 27 20 6f 70 |e 'short|name' op|
|00002540| 74 69 6f 6e 2e 20 0a 58 | 09 20 20 20 54 68 69 73 |tion. .X|. This|
|00002550| 20 66 6c 61 67 20 69 73 | 20 72 65 73 65 74 20 77 | flag is| reset w|
|00002560| 68 65 6e 20 79 6f 75 20 | 73 74 61 72 74 20 65 64 |hen you |start ed|
|00002570| 69 74 69 6e 67 20 61 6e | 6f 74 68 65 72 20 66 69 |iting an|other fi|
|00002580| 6c 65 2e 0a 58 0a 58 09 | 20 20 20 49 66 20 74 68 |le..X.X.| If th|
|00002590| 65 20 22 2e 73 77 70 22 | 20 66 69 6c 65 6e 61 6d |e ".swp"| filenam|
|000025a0| 65 20 61 6c 72 65 61 64 | 79 20 65 78 69 73 74 73 |e alread|y exists|
|000025b0| 2c 20 74 68 65 20 6c 61 | 73 74 20 63 68 61 72 61 |, the la|st chara|
|000025c0| 63 74 65 72 20 69 73 20 | 0a 58 09 20 20 20 64 65 |cter is |.X. de|
|000025d0| 63 72 65 6d 65 6e 74 65 | 64 20 75 6e 74 69 6c 20 |cremente|d until |
|000025e0| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 66 69 6c 65 |there is| no file|
|000025f0| 20 77 69 74 68 20 74 68 | 61 74 20 6e 61 6d 65 20 | with th|at name |
|00002600| 6f 72 20 22 2e 73 77 61 | 22 20 69 73 20 0a 58 09 |or ".swa|" is .X.|
|00002610| 20 20 20 72 65 61 63 68 | 65 64 2e 20 49 6e 20 74 | reach|ed. In t|
|00002620| 68 65 20 6c 61 73 74 20 | 63 61 73 65 2c 20 6e 6f |he last |case, no|
|00002630| 20 73 77 61 70 20 66 69 | 6c 65 20 69 73 20 63 72 | swap fi|le is cr|
|00002640| 65 61 74 65 64 2e 0a 58 | 0a 58 42 79 20 73 65 74 |eated..X|.XBy set|
|00002650| 74 69 6e 67 20 74 68 65 | 20 27 64 69 72 65 63 74 |ting the| 'direct|
|00002660| 6f 72 79 27 20 6f 70 74 | 69 6f 6e 20 79 6f 75 20 |ory' opt|ion you |
|00002670| 63 61 6e 20 70 6c 61 63 | 65 20 74 68 65 20 73 77 |can plac|e the sw|
|00002680| 61 70 20 66 69 6c 65 20 | 69 6e 0a 58 61 6e 6f 74 |ap file |in.Xanot|
|00002690| 68 65 72 20 70 6c 61 63 | 65 20 74 68 61 6e 20 77 |her plac|e than w|
|000026a0| 68 65 72 65 20 74 68 65 | 20 65 64 69 74 65 64 20 |here the| edited |
|000026b0| 66 69 6c 65 20 69 73 2e | 20 54 68 65 20 61 64 76 |file is.| The adv|
|000026c0| 61 6e 74 61 67 65 20 69 | 73 20 74 68 61 74 20 79 |antage i|s that y|
|000026d0| 6f 75 20 77 69 6c 6c 0a | 58 6e 6f 74 20 70 6f 6c |ou will.|Xnot pol|
|000026e0| 6c 75 74 65 20 74 68 65 | 20 64 69 72 65 63 74 6f |lute the| directo|
|000026f0| 72 69 65 73 20 77 69 74 | 68 20 22 2e 73 77 70 22 |ries wit|h ".swp"|
|00002700| 20 66 69 6c 65 73 20 61 | 6e 64 2c 20 77 68 65 6e | files a|nd, when|
|00002710| 20 74 68 65 20 27 64 69 | 72 65 63 74 6f 72 79 27 | the 'di|rectory'|
|00002720| 20 69 73 0a 58 6f 6e 20 | 61 6e 6f 74 68 65 72 20 | is.Xon |another |
|00002730| 70 61 72 74 69 74 69 6f | 6e 2c 20 72 65 64 75 63 |partitio|n, reduc|
|00002740| 65 20 74 68 65 20 72 69 | 73 6b 20 6f 66 20 64 61 |e the ri|sk of da|
|00002750| 6d 61 67 69 6e 67 20 74 | 68 65 20 66 69 6c 65 20 |maging t|he file |
|00002760| 73 79 73 74 65 6d 20 77 | 68 65 72 65 20 74 68 65 |system w|here the|
|00002770| 0a 58 66 69 6c 65 20 69 | 73 20 28 69 6e 20 61 20 |.Xfile i|s (in a |
|00002780| 63 72 61 73 68 29 2e 20 | 54 68 65 20 74 72 61 64 |crash). |The trad|
|00002790| 65 6f 66 66 20 69 73 20 | 74 68 61 74 20 79 6f 75 |eoff is |that you|
|000027a0| 20 63 61 6e 20 67 65 74 | 20 6e 61 6d 65 20 63 6f | can get| name co|
|000027b0| 6c 6c 69 73 69 6f 6e 73 | 20 66 72 6f 6d 0a 58 66 |llisions| from.Xf|
|000027c0| 69 6c 65 73 20 77 69 74 | 68 20 74 68 65 20 73 61 |iles wit|h the sa|
|000027d0| 6d 65 20 6e 61 6d 65 20 | 62 75 74 20 69 6e 20 64 |me name |but in d|
|000027e0| 69 66 66 65 72 65 6e 74 | 20 64 69 72 65 63 74 6f |ifferent| directo|
|000027f0| 72 69 65 73 2e 20 59 6f | 75 20 63 61 6e 20 61 6c |ries. Yo|u can al|
|00002800| 73 6f 20 75 73 65 20 61 | 0a 58 72 65 63 6f 76 65 |so use a|.Xrecove|
|00002810| 72 61 62 6c 65 20 72 61 | 6d 20 64 69 73 6b 2c 20 |rable ra|m disk, |
|00002820| 62 75 74 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 |but ther|e is no |
|00002830| 31 30 30 25 20 67 75 61 | 72 61 6e 74 65 65 20 74 |100% gua|rantee t|
|00002840| 68 61 74 20 74 68 69 73 | 20 77 6f 72 6b 73 2e 0a |hat this| works..|
|00002850| 58 50 75 74 74 69 6e 67 | 20 73 77 61 70 20 66 69 |XPutting| swap fi|
|00002860| 6c 65 73 20 69 6e 20 61 | 20 6e 6f 72 6d 61 6c 20 |les in a| normal |
|00002870| 72 61 6d 20 64 69 73 6b | 20 28 6c 69 6b 65 20 52 |ram disk| (like R|
|00002880| 41 4d 3a 20 6f 6e 20 74 | 68 65 20 41 6d 69 67 61 |AM: on t|he Amiga|
|00002890| 29 20 6d 61 6b 65 73 20 | 6e 6f 0a 58 73 65 6e 73 |) makes |no.Xsens|
|000028a0| 65 2c 20 79 6f 75 20 77 | 69 6c 6c 20 6c 6f 6f 73 |e, you w|ill loos|
|000028b0| 65 20 74 68 65 6d 20 69 | 6e 20 61 20 63 72 61 73 |e them i|n a cras|
|000028c0| 68 2e 20 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |h. If yo|u want t|
|000028d0| 6f 20 70 75 74 20 73 77 | 61 70 20 66 69 6c 65 73 |o put sw|ap files|
|000028e0| 20 69 6e 0a 58 61 6e 6f | 74 68 65 72 20 70 6c 61 | in.Xano|ther pla|
|000028f0| 63 65 2c 20 70 75 74 20 | 61 20 63 6f 6d 6d 61 6e |ce, put |a comman|
|00002900| 64 20 72 65 73 65 6d 62 | 6c 69 6e 67 20 74 68 65 |d resemb|ling the|
|00002910| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6f 6e 65 20 69 | followi|ng one i|
|00002920| 6e 20 79 6f 75 72 20 2e | 76 69 6d 72 63 3a 0a 58 |n your .|vimrc:.X|
|00002930| 09 3a 73 65 74 20 64 69 | 72 3d 64 68 32 3a 74 6d |.:set di|r=dh2:tm|
|00002940| 70 0a 58 54 68 69 73 20 | 69 73 20 61 6c 73 6f 20 |p.XThis |is also |
|00002950| 76 65 72 79 20 68 61 6e | 64 79 20 77 68 65 6e 20 |very han|dy when |
|00002960| 65 64 69 74 69 6e 67 20 | 66 69 6c 65 73 20 6f 6e |editing |files on|
|00002970| 20 66 6c 6f 70 70 79 2e | 0a 58 0a 58 54 68 65 20 | floppy.|.X.XThe |
|00002980| 73 77 61 70 20 66 69 6c | 65 20 69 73 20 75 70 64 |swap fil|e is upd|
|00002990| 61 74 65 64 20 61 66 74 | 65 72 20 74 79 70 69 6e |ated aft|er typin|
|000029a0| 67 20 32 30 30 20 63 68 | 61 72 61 63 74 65 72 73 |g 200 ch|aracters|
|000029b0| 20 6f 72 20 77 68 65 6e | 20 79 6f 75 20 68 61 76 | or when| you hav|
|000029c0| 65 20 0a 58 6e 6f 74 20 | 74 79 70 65 64 20 61 6e |e .Xnot |typed an|
|000029d0| 79 74 68 69 6e 67 20 66 | 6f 72 20 66 6f 75 72 20 |ything f|or four |
|000029e0| 73 65 63 6f 6e 64 73 2e | 20 54 68 69 73 20 6f 6e |seconds.| This on|
|000029f0| 6c 79 20 68 61 70 70 65 | 6e 73 20 69 66 20 74 68 |ly happe|ns if th|
|00002a00| 65 20 62 75 66 66 65 72 | 20 77 61 73 20 0a 58 63 |e buffer| was .Xc|
|00002a10| 68 61 6e 67 65 64 2c 20 | 6e 6f 74 20 77 68 65 6e |hanged, |not when|
|00002a20| 20 79 6f 75 20 6f 6e 6c | 79 20 6d 6f 76 65 64 20 | you onl|y moved |
|00002a30| 61 72 6f 75 6e 64 2e 20 | 54 68 65 20 72 65 61 73 |around. |The reas|
|00002a40| 6f 6e 20 77 68 79 20 69 | 74 20 69 73 20 6e 6f 74 |on why i|t is not|
|00002a50| 20 6b 65 70 74 20 75 70 | 20 74 6f 20 0a 58 64 61 | kept up| to .Xda|
|00002a60| 74 65 20 61 6c 6c 20 74 | 68 65 20 74 69 6d 65 20 |te all t|he time |
|00002a70| 69 73 20 74 68 61 74 20 | 74 68 69 73 20 77 6f 75 |is that |this wou|
|00002a80| 6c 64 20 73 6c 6f 77 20 | 64 6f 77 6e 20 6e 6f 72 |ld slow |down nor|
|00002a90| 6d 61 6c 20 77 6f 72 6b | 20 74 6f 6f 20 6d 75 63 |mal work| too muc|
|00002aa0| 68 2e 20 59 6f 75 20 63 | 61 6e 20 0a 58 63 68 61 |h. You c|an .Xcha|
|00002ab0| 6e 67 65 20 74 68 65 20 | 32 30 30 20 63 68 61 72 |nge the |200 char|
|00002ac0| 61 63 74 65 72 20 63 6f | 75 6e 74 20 77 69 74 68 |acter co|unt with|
|00002ad0| 20 74 68 65 20 27 75 70 | 64 61 74 65 63 6f 75 6e | the 'up|datecoun|
|00002ae0| 74 27 20 6f 70 74 69 6f | 6e 2e 20 59 6f 75 20 63 |t' optio|n. You c|
|00002af0| 61 6e 20 73 65 74 20 0a | 58 74 68 65 20 74 69 6d |an set .|Xthe tim|
|00002b00| 65 20 77 69 74 68 20 74 | 68 65 20 27 75 70 64 61 |e with t|he 'upda|
|00002b10| 74 65 74 69 6d 65 27 20 | 6f 70 74 69 6f 6e 2e 20 |tetime' |option. |
|00002b20| 54 68 65 20 74 69 6d 65 | 20 69 73 20 67 69 76 65 |The time| is give|
|00002b30| 6e 20 69 6e 20 6d 69 6c | 6c 69 73 65 63 6f 6e 64 |n in mil|lisecond|
|00002b40| 73 2e 0a 58 0a 58 49 66 | 20 74 68 65 20 77 72 69 |s..X.XIf| the wri|
|00002b50| 74 69 6e 67 20 74 6f 20 | 74 68 65 20 73 77 61 70 |ting to |the swap|
|00002b60| 20 66 69 6c 65 20 69 73 | 20 6e 6f 74 20 77 61 6e | file is| not wan|
|00002b70| 74 65 64 2c 20 69 74 20 | 63 61 6e 20 62 65 20 73 |ted, it |can be s|
|00002b80| 77 69 74 63 68 65 64 20 | 6f 66 66 20 62 79 0a 58 |witched |off by.X|
|00002b90| 73 65 74 74 69 6e 67 20 | 74 68 65 20 27 75 70 64 |setting |the 'upd|
|00002ba0| 61 74 65 63 6f 75 6e 74 | 27 20 6f 70 74 69 6f 6e |atecount|' option|
|00002bb0| 20 74 6f 20 30 2e 20 54 | 68 65 20 73 61 6d 65 20 | to 0. T|he same |
|00002bc0| 69 73 20 64 6f 6e 65 20 | 77 68 65 6e 20 73 74 61 |is done |when sta|
|00002bd0| 72 74 69 6e 67 20 56 69 | 6d 20 0a 58 77 69 74 68 |rting Vi|m .Xwith|
|00002be0| 20 74 68 65 20 22 2d 6e | 22 20 6f 72 20 22 2d 76 | the "-n|" or "-v|
|00002bf0| 22 20 6f 70 74 69 6f 6e | 2e 20 57 72 69 74 69 6e |" option|. Writin|
|00002c00| 67 20 63 61 6e 20 62 65 | 20 73 77 69 74 63 68 65 |g can be| switche|
|00002c10| 64 20 62 61 63 6b 20 6f | 6e 20 62 79 20 73 65 74 |d back o|n by set|
|00002c20| 74 69 6e 67 20 74 68 65 | 20 0a 58 27 75 70 64 61 |ting the| .X'upda|
|00002c30| 74 65 63 6f 75 6e 74 27 | 20 6f 70 74 69 6f 6e 20 |tecount'| option |
|00002c40| 74 6f 20 6e 6f 6e 2d 7a | 65 72 6f 2e 20 42 75 74 |to non-z|ero. But|
|00002c50| 20 74 68 69 73 20 77 69 | 6c 6c 20 6f 6e 6c 79 20 | this wi|ll only |
|00002c60| 61 66 66 65 63 74 20 66 | 69 6c 65 73 20 74 68 61 |affect f|iles tha|
|00002c70| 74 20 77 69 6c 6c 0a 58 | 62 65 20 6f 70 65 6e 65 |t will.X|be opene|
|00002c80| 64 20 61 66 74 65 72 20 | 74 68 69 73 2e 0a 58 0a |d after |this..X.|
|00002c90| 58 49 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 |XIf you |want to |
|00002ca0| 6d 61 6b 65 20 73 75 72 | 65 20 74 68 61 74 20 79 |make sur|e that y|
|00002cb0| 6f 75 72 20 63 68 61 6e | 67 65 73 20 61 72 65 20 |our chan|ges are |
|00002cc0| 69 6e 20 74 68 65 20 73 | 77 61 70 20 66 69 6c 65 |in the s|wap file|
|00002cd0| 20 75 73 65 20 74 68 69 | 73 0a 58 63 6f 6d 6d 61 | use thi|s.Xcomma|
|00002ce0| 6e 64 3a 0a 58 0a 58 3a | 70 72 65 73 5b 65 72 76 |nd:.X.X:|pres[erv|
|00002cf0| 65 5d 09 09 57 72 69 74 | 65 20 61 6c 6c 20 74 65 |e]..Writ|e all te|
|00002d00| 78 74 20 66 6f 72 20 61 | 6c 6c 20 62 75 66 66 65 |xt for a|ll buffe|
|00002d10| 72 73 20 69 6e 74 6f 20 | 73 77 61 70 20 66 69 6c |rs into |swap fil|
|00002d20| 65 2e 20 7b 56 69 3a 0a | 58 09 09 09 65 6d 65 72 |e. {Vi:.|X...emer|
|00002d30| 67 65 6e 63 79 20 65 78 | 69 74 7d 0a 58 0a 58 41 |gency ex|it}.X.XA|
|00002d40| 20 56 69 6d 20 73 77 61 | 70 20 66 69 6c 65 20 63 | Vim swa|p file c|
|00002d50| 61 6e 20 62 65 20 72 65 | 63 6f 67 6e 69 7a 65 64 |an be re|cognized|
|00002d60| 20 62 79 20 74 68 65 20 | 66 69 72 73 74 20 73 69 | by the |first si|
|00002d70| 78 20 63 68 61 72 61 63 | 74 65 72 73 3a 20 22 62 |x charac|ters: "b|
|00002d80| 30 56 49 4d 20 22 2e 0a | 58 41 66 74 65 72 20 74 |0VIM "..|XAfter t|
|00002d90| 68 61 74 20 63 6f 6d 65 | 73 20 74 68 65 20 76 65 |hat come|s the ve|
|00002da0| 72 73 69 6f 6e 20 6e 75 | 6d 62 65 72 2c 20 65 2e |rsion nu|mber, e.|
|00002db0| 67 2e 20 22 33 2e 30 22 | 2e 0a 58 0a 58 0a 58 31 |g. "3.0"|..X.X.X1|
|00002dc0| 38 2e 32 20 52 65 63 6f | 76 65 72 79 0a 58 0a 58 |8.2 Reco|very.X.X|
|00002dd0| 49 6e 20 6d 6f 73 74 20 | 63 61 73 65 73 20 72 65 |In most |cases re|
|00002de0| 63 6f 76 65 72 79 20 69 | 73 20 71 75 69 74 65 20 |covery i|s quite |
|00002df0| 65 61 73 79 3a 20 53 74 | 61 72 74 20 56 69 6d 20 |easy: St|art Vim |
|00002e00| 6f 6e 20 74 68 65 20 73 | 61 6d 65 20 66 69 6c 65 |on the s|ame file|
|00002e10| 20 79 6f 75 20 77 65 72 | 65 0a 58 65 64 69 74 69 | you wer|e.Xediti|
|00002e20| 6e 67 20 77 68 65 6e 20 | 74 68 65 20 63 72 61 73 |ng when |the cras|
|00002e30| 68 20 68 61 70 70 65 6e | 65 64 2c 20 77 69 74 68 |h happen|ed, with|
|00002e40| 20 74 68 65 20 22 2d 72 | 22 20 6f 70 74 69 6f 6e | the "-r|" option|
|00002e50| 20 61 64 64 65 64 2e 20 | 56 69 6d 20 77 69 6c 6c | added. |Vim will|
|00002e60| 20 72 65 61 64 0a 58 74 | 68 65 20 22 2e 73 77 70 | read.Xt|he ".swp|
|00002e70| 22 20 66 69 6c 65 20 61 | 6e 64 20 6d 61 79 20 72 |" file a|nd may r|
|00002e80| 65 61 64 20 62 69 74 73 | 20 61 6e 64 20 70 69 65 |ead bits| and pie|
|00002e90| 63 65 73 20 6f 66 20 74 | 68 65 20 6f 72 69 67 69 |ces of t|he origi|
|00002ea0| 6e 61 6c 20 66 69 6c 65 | 2e 0a 58 0a 58 45 78 61 |nal file|..X.XExa|
|00002eb0| 6d 70 6c 65 3a 09 76 69 | 6d 20 2d 72 20 72 65 66 |mple:.vi|m -r ref|
|00002ec0| 65 72 65 6e 63 65 2e 64 | 6f 63 0a 58 0a 58 49 66 |erence.d|oc.X.XIf|
|00002ed0| 20 74 68 65 20 73 77 61 | 70 20 66 69 6c 65 20 64 | the swa|p file d|
|00002ee0| 6f 65 73 20 6e 6f 74 20 | 65 6e 64 20 69 6e 20 22 |oes not |end in "|
|00002ef0| 2e 73 77 70 22 20 62 75 | 74 20 69 6e 20 73 6f 6d |.swp" bu|t in som|
|00002f00| 65 74 68 69 6e 67 20 65 | 6c 73 65 2c 20 79 6f 75 |ething e|lse, you|
|00002f10| 20 63 61 6e 0a 58 72 65 | 63 6f 76 65 72 20 62 79 | can.Xre|cover by|
|00002f20| 20 67 69 76 69 6e 67 20 | 74 68 65 20 73 77 61 70 | giving |the swap|
|00002f30| 20 66 69 6c 65 20 6e 61 | 6d 65 2e 20 56 69 6d 20 | file na|me. Vim |
|00002f40| 77 69 6c 6c 20 74 68 65 | 6e 20 66 69 6e 64 20 6f |will the|n find o|
|00002f50| 75 74 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |ut the n|ame of t|
|00002f60| 68 65 0a 58 6f 72 69 67 | 69 6e 61 6c 20 66 69 6c |he.Xorig|inal fil|
|00002f70| 65 20 66 72 6f 6d 20 74 | 68 65 20 73 77 61 70 20 |e from t|he swap |
|00002f80| 66 69 6c 65 2e 0a 58 0a | 58 45 78 61 6d 70 6c 65 |file..X.|XExample|
|00002f90| 3a 09 56 69 6d 20 2d 72 | 20 72 65 66 65 72 65 6e |:.Vim -r| referen|
|00002fa0| 63 65 2e 64 6f 63 2e 73 | 77 70 0a 58 0a 58 54 68 |ce.doc.s|wp.X.XTh|
|00002fb0| 69 73 20 69 73 20 61 6c | 73 6f 20 68 61 6e 64 79 |is is al|so handy|
|00002fc0| 20 77 68 65 6e 20 74 68 | 65 20 73 77 61 70 20 66 | when th|e swap f|
|00002fd0| 69 6c 65 20 69 73 20 69 | 6e 20 61 6e 6f 74 68 65 |ile is i|n anothe|
|00002fe0| 72 20 64 69 72 65 63 74 | 6f 72 79 20 74 68 61 6e |r direct|ory than|
|00002ff0| 20 65 78 70 65 63 74 65 | 64 2e 0a 58 49 66 20 74 | expecte|d..XIf t|
|00003000| 68 69 73 20 73 74 69 6c | 6c 20 64 6f 65 73 20 6e |his stil|l does n|
|00003010| 6f 74 20 77 6f 72 6b 2c | 20 73 65 65 20 77 68 61 |ot work,| see wha|
|00003020| 74 20 66 69 6c 65 20 6e | 61 6d 65 73 20 56 69 6d |t file n|ames Vim|
|00003030| 20 72 65 70 6f 72 74 73 | 20 61 6e 64 20 72 65 6e | reports| and ren|
|00003040| 61 6d 65 20 74 68 65 0a | 58 66 69 6c 65 73 20 61 |ame the.|Xfiles a|
|00003050| 63 63 6f 72 64 69 6e 67 | 6c 79 2e 20 0a 58 0a 58 |ccording|ly. .X.X|
|00003060| 54 68 65 72 65 20 69 73 | 20 73 6f 6d 65 20 69 6e |There is| some in|
|00003070| 74 65 6c 6c 69 67 65 6e | 63 65 20 61 62 6f 75 74 |telligen|ce about|
|00003080| 20 77 68 61 74 20 74 6f | 20 64 6f 20 69 66 20 74 | what to| do if t|
|00003090| 68 65 20 73 77 61 70 20 | 66 69 6c 65 20 69 73 20 |he swap |file is |
|000030a0| 63 6f 72 72 75 70 74 20 | 69 6e 0a 58 73 6f 6d 65 |corrupt |in.Xsome|
|000030b0| 20 77 61 79 2e 20 49 66 | 20 56 69 6d 20 68 61 73 | way. If| Vim has|
|000030c0| 20 64 6f 75 62 74 20 61 | 62 6f 75 74 20 77 68 61 | doubt a|bout wha|
|000030d0| 74 20 69 74 20 66 6f 75 | 6e 64 2c 20 69 74 20 77 |t it fou|nd, it w|
|000030e0| 69 6c 6c 20 67 69 76 65 | 20 61 6e 20 65 72 72 6f |ill give| an erro|
|000030f0| 72 0a 58 6d 65 73 73 61 | 67 65 20 61 6e 64 20 69 |r.Xmessa|ge and i|
|00003100| 6e 73 65 72 74 20 6c 69 | 6e 65 73 20 77 69 74 68 |nsert li|nes with|
|00003110| 20 22 3f 3f 3f 22 20 69 | 6e 20 74 68 65 20 74 65 | "???" i|n the te|
|00003120| 78 74 2e 20 49 66 20 79 | 6f 75 20 73 65 65 20 61 |xt. If y|ou see a|
|00003130| 6e 20 65 72 72 6f 72 20 | 6d 65 73 73 61 67 65 0a |n error |message.|
|00003140| 58 77 68 69 6c 65 20 72 | 65 63 6f 76 65 72 69 6e |Xwhile r|ecoverin|
|00003150| 67 2c 20 73 65 61 72 63 | 68 20 69 6e 20 74 68 65 |g, searc|h in the|
|00003160| 20 66 69 6c 65 20 66 6f | 72 20 22 3f 3f 3f 22 20 | file fo|r "???" |
|00003170| 74 6f 20 73 65 65 20 77 | 68 61 74 20 69 73 20 77 |to see w|hat is w|
|00003180| 72 6f 6e 67 2e 20 59 6f | 75 20 6d 61 79 0a 58 77 |rong. Yo|u may.Xw|
|00003190| 61 6e 74 20 74 6f 20 63 | 75 74 20 61 6e 64 20 70 |ant to c|ut and p|
|000031a0| 61 73 74 65 20 74 6f 20 | 67 65 74 20 74 68 65 20 |aste to |get the |
|000031b0| 74 65 78 74 20 79 6f 75 | 20 6e 65 65 64 2e 0a 58 |text you| need..X|
|000031c0| 0a 58 42 65 20 73 75 72 | 65 20 74 68 61 74 20 74 |.XBe sur|e that t|
|000031d0| 68 65 20 72 65 63 6f 76 | 65 72 79 20 77 61 73 20 |he recov|ery was |
|000031e0| 73 75 63 63 65 73 73 66 | 75 6c 20 62 65 66 6f 72 |successf|ul befor|
|000031f0| 65 20 6f 76 65 72 77 72 | 69 74 69 6e 67 20 74 68 |e overwr|iting th|
|00003200| 65 20 6f 72 69 67 69 6e | 61 6c 0a 58 66 69 6c 65 |e origin|al.Xfile|
|00003210| 20 6f 72 20 64 65 6c 65 | 74 69 6e 67 20 74 68 65 | or dele|ting the|
|00003220| 20 73 77 61 70 20 66 69 | 6c 65 2e 20 49 74 20 69 | swap fi|le. It i|
|00003230| 73 20 67 6f 6f 64 20 70 | 72 61 63 74 69 63 65 20 |s good p|ractice |
|00003240| 74 6f 20 77 72 69 74 65 | 20 74 68 65 20 72 65 63 |to write| the rec|
|00003250| 6f 76 65 72 65 64 0a 58 | 66 69 6c 65 20 65 6c 73 |overed.X|file els|
|00003260| 65 77 68 65 72 65 20 61 | 6e 64 20 65 78 65 63 75 |ewhere a|nd execu|
|00003270| 74 65 20 27 64 69 66 66 | 27 20 74 6f 20 66 69 6e |te 'diff|' to fin|
|00003280| 64 20 6f 75 74 20 69 66 | 20 74 68 65 20 63 68 61 |d out if| the cha|
|00003290| 6e 67 65 73 20 79 6f 75 | 20 77 61 6e 74 20 61 72 |nges you| want ar|
|000032a0| 65 20 69 6e 0a 58 74 68 | 65 20 72 65 63 6f 76 65 |e in.Xth|e recove|
|000032b0| 72 65 64 20 66 69 6c 65 | 2e 0a 58 0a 58 4f 6e 63 |red file|..X.XOnc|
|000032c0| 65 20 79 6f 75 20 61 72 | 65 20 73 75 72 65 20 74 |e you ar|e sure t|
|000032d0| 68 65 20 72 65 63 6f 76 | 65 72 79 20 69 73 20 6f |he recov|ery is o|
|000032e0| 6b 20 64 65 6c 65 74 65 | 20 74 68 65 20 73 77 61 |k delete| the swa|
|000032f0| 70 20 66 69 6c 65 2e 20 | 4f 74 68 65 72 77 69 73 |p file. |Otherwis|
|00003300| 65 2c 20 79 6f 75 0a 58 | 77 69 6c 6c 20 63 6f 6e |e, you.X|will con|
|00003310| 74 69 6e 75 65 20 74 6f | 20 67 65 74 20 77 61 72 |tinue to| get war|
|00003320| 6e 69 6e 67 20 6d 65 73 | 73 61 67 65 73 20 74 68 |ning mes|sages th|
|00003330| 61 74 20 74 68 65 20 22 | 2e 73 77 70 22 20 66 69 |at the "|.swp" fi|
|00003340| 6c 65 20 61 6c 72 65 61 | 64 79 20 65 78 69 73 74 |le alrea|dy exist|
|00003350| 73 2e 0a 58 0a 58 7b 56 | 69 3a 20 72 65 63 6f 76 |s..X.X{V|i: recov|
|00003360| 65 72 73 20 69 6e 20 61 | 6e 6f 74 68 65 72 20 77 |ers in a|nother w|
|00003370| 61 79 20 61 6e 64 20 73 | 65 6e 64 73 20 6d 61 69 |ay and s|ends mai|
|00003380| 6c 20 69 66 20 74 68 65 | 72 65 20 69 73 20 73 6f |l if the|re is so|
|00003390| 6d 65 74 68 69 6e 67 20 | 74 6f 20 72 65 63 6f 76 |mething |to recov|
|000033a0| 65 72 7d 0a 58 0a 58 0a | 58 09 31 39 2e 20 4f 70 |er}.X.X.|X.19. Op|
|000033b0| 74 69 6f 6e 73 0a 58 0a | 58 56 69 20 68 61 73 20 |tions.X.|XVi has |
|000033c0| 61 20 6e 75 6d 62 65 72 | 20 6f 66 20 69 6e 74 65 |a number| of inte|
|000033d0| 72 6e 61 6c 20 76 61 72 | 69 61 62 6c 65 73 20 61 |rnal var|iables a|
|000033e0| 6e 64 20 73 77 69 74 63 | 68 65 73 20 77 68 69 63 |nd switc|hes whic|
|000033f0| 68 20 63 61 6e 20 62 65 | 20 73 65 74 20 74 6f 20 |h can be| set to |
|00003400| 0a 58 61 63 68 69 65 76 | 65 20 73 70 65 63 69 61 |.Xachiev|e specia|
|00003410| 6c 20 65 66 66 65 63 74 | 73 2e 20 54 68 65 73 65 |l effect|s. These|
|00003420| 20 6f 70 74 69 6f 6e 73 | 20 63 6f 6d 65 20 69 6e | options| come in|
|00003430| 20 74 68 72 65 65 20 66 | 6f 72 6d 73 2c 20 74 68 | three f|orms, th|
|00003440| 6f 73 65 20 74 68 61 74 | 20 61 72 65 20 0a 58 73 |ose that| are .Xs|
|00003450| 77 69 74 63 68 65 73 2c | 20 77 68 69 63 68 20 74 |witches,| which t|
|00003460| 6f 67 67 6c 65 20 66 72 | 6f 6d 20 6f 66 66 20 74 |oggle fr|om off t|
|00003470| 6f 20 6f 6e 20 61 6e 64 | 20 62 61 63 6b 2c 20 74 |o on and| back, t|
|00003480| 68 6f 73 65 20 74 68 61 | 74 20 72 65 71 75 69 72 |hose tha|t requir|
|00003490| 65 20 61 20 6e 75 6d 65 | 72 69 63 20 0a 58 76 61 |e a nume|ric .Xva|
|000034a0| 6c 75 65 2c 20 61 6e 64 | 20 74 68 6f 73 65 20 74 |lue, and| those t|
|000034b0| 68 61 74 20 72 65 71 75 | 69 72 65 20 61 6e 20 61 |hat requ|ire an a|
|000034c0| 6c 70 68 61 6e 75 6d 65 | 72 69 63 20 73 74 72 69 |lphanume|ric stri|
|000034d0| 6e 67 20 76 61 6c 75 65 | 2e 0a 58 0a 58 0a 58 31 |ng value|..X.X.X1|
|000034e0| 39 2e 31 20 53 65 74 74 | 69 6e 67 20 6f 70 74 69 |9.1 Sett|ing opti|
|000034f0| 6f 6e 73 0a 58 0a 58 3a | 73 65 5b 74 5d 09 09 09 |ons.X.X:|se[t]...|
|00003500| 53 68 6f 77 20 61 6c 6c | 20 6d 6f 64 69 66 69 65 |Show all| modifie|
|00003510| 64 20 6f 70 74 69 6f 6e | 73 2e 20 7b 56 69 3a 20 |d option|s. {Vi: |
|00003520| 6e 6f 6e 2d 64 65 66 61 | 75 6c 74 20 6f 70 74 69 |non-defa|ult opti|
|00003530| 6f 6e 73 7d 0a 58 0a 58 | 3a 73 65 5b 74 5d 20 61 |ons}.X.X|:se[t] a|
|00003540| 6c 6c 09 09 53 68 6f 77 | 20 61 6c 6c 20 62 75 74 |ll..Show| all but|
|00003550| 20 74 65 72 6d 69 6e 61 | 6c 20 6f 70 74 69 6f 6e | termina|l option|
|00003560| 73 2e 0a 58 0a 58 3a 73 | 65 5b 74 5d 20 74 65 72 |s..X.X:s|e[t] ter|
|00003570| 6d 63 61 70 09 09 53 68 | 6f 77 20 61 6c 6c 20 74 |mcap..Sh|ow all t|
|00003580| 65 72 6d 69 6e 61 6c 20 | 6f 70 74 69 6f 6e 73 2e |erminal |options.|
|00003590| 0a 58 0a 58 3a 73 65 5b | 74 5d 20 7b 6f 70 74 69 |.X.X:se[|t] {opti|
|000035a0| 6f 6e 7d 09 09 53 65 74 | 20 74 6f 67 67 6c 65 20 |on}..Set| toggle |
|000035b0| 6f 70 74 69 6f 6e 20 6f | 6e 2c 20 73 68 6f 77 20 |option o|n, show |
|000035c0| 76 61 6c 75 65 20 6f 66 | 20 73 74 72 69 6e 67 20 |value of| string |
|000035d0| 6f 72 20 6e 75 6d 62 65 | 72 0a 58 09 09 09 6f 70 |or numbe|r.X...op|
|000035e0| 74 69 6f 6e 2e 0a 58 0a | 58 3a 73 65 5b 74 5d 20 |tion..X.|X:se[t] |
|000035f0| 6e 6f 7b 6f 70 74 69 6f | 6e 7d 09 53 65 74 20 74 |no{optio|n}.Set t|
|00003600| 6f 67 67 6c 65 20 6f 70 | 74 69 6f 6e 20 6f 66 66 |oggle op|tion off|
|00003610| 2e 0a 58 0a 58 3a 73 65 | 5b 74 5d 20 69 6e 76 7b |..X.X:se|[t] inv{|
|00003620| 6f 70 74 69 6f 6e 7d 09 | 49 6e 76 65 72 74 20 74 |option}.|Invert t|
|00003630| 6f 67 67 6c 65 20 6f 70 | 74 69 6f 6e 2e 20 7b 6e |oggle op|tion. {n|
|00003640| 6f 74 20 69 6e 20 56 69 | 7d 0a 58 0a 58 3a 73 65 |ot in Vi|}.X.X:se|
|00003650| 5b 74 5d 20 7b 6f 70 74 | 69 6f 6e 7d 3d 7b 76 61 |[t] {opt|ion}={va|
|00003660| 6c 75 65 7d 20 53 65 74 | 20 73 74 72 69 6e 67 20 |lue} Set| string |
|00003670| 6f 72 20 6e 75 6d 62 65 | 72 20 6f 70 74 69 6f 6e |or numbe|r option|
|00003680| 20 74 6f 20 7b 76 61 6c | 75 65 7d 2e 0a 58 0a 58 | to {val|ue}..X.X|
|00003690| 3a 73 65 5b 74 5d 20 7b | 6f 70 74 69 6f 6e 7d 3f |:se[t] {|option}?|
|000036a0| 09 53 68 6f 77 20 76 61 | 6c 75 65 20 6f 66 20 7b |.Show va|lue of {|
|000036b0| 6f 70 74 69 6f 6e 7d 2e | 0a 58 0a 58 54 68 65 20 |option}.|.X.XThe |
|000036c0| 7b 6f 70 74 69 6f 6e 7d | 20 61 72 67 75 6d 65 6e |{option}| argumen|
|000036d0| 74 73 20 74 6f 20 22 3a | 73 65 74 22 20 6d 61 79 |ts to ":|set" may|
|000036e0| 20 62 65 20 72 65 70 65 | 61 74 65 64 2e 20 46 6f | be repe|ated. Fo|
|000036f0| 72 20 65 78 61 6d 70 6c | 65 3a 0a 58 09 22 3a 73 |r exampl|e:.X.":s|
|00003700| 65 74 20 61 69 20 6e 6f | 73 69 20 73 77 3d 33 20 |et ai no|si sw=3 |
|00003710| 74 73 3d 33 22 2e 0a 58 | 49 66 20 79 6f 75 20 6d |ts=3"..X|If you m|
|00003720| 61 6b 65 20 61 6e 20 65 | 72 72 6f 72 20 69 6e 20 |ake an e|rror in |
|00003730| 6f 6e 65 20 6f 66 20 74 | 68 65 20 61 72 67 75 6d |one of t|he argum|
|00003740| 65 6e 74 73 20 61 6e 20 | 65 72 72 6f 72 20 6d 65 |ents an |error me|
|00003750| 73 73 61 67 65 20 77 69 | 6c 6c 20 62 65 20 67 69 |ssage wi|ll be gi|
|00003760| 76 65 6e 0a 58 61 6e 64 | 20 74 68 65 20 74 65 78 |ven.Xand| the tex|
|00003770| 74 20 75 70 20 74 6f 20 | 74 68 65 20 6e 65 78 74 |t up to |the next|
|00003780| 20 73 70 61 63 65 20 77 | 69 6c 6c 20 62 65 20 73 | space w|ill be s|
|00003790| 6b 69 70 70 65 64 2e 20 | 54 68 75 73 20 66 6f 6c |kipped. |Thus fol|
|000037a0| 6c 6f 77 69 6e 67 20 61 | 72 67 75 6d 65 6e 74 73 |lowing a|rguments|
|000037b0| 0a 58 77 69 6c 6c 20 62 | 65 20 70 72 6f 63 65 73 |.Xwill b|e proces|
|000037c0| 73 65 64 2e 0a 58 0a 58 | 54 68 65 20 6c 69 73 74 |sed..X.X|The list|
|000037d0| 69 6e 67 20 66 72 6f 6d | 20 22 3a 73 65 74 22 20 |ing from| ":set" |
|000037e0| 6c 6f 6f 6b 73 20 64 69 | 66 66 65 72 65 6e 74 20 |looks di|fferent |
|000037f0| 66 72 6f 6d 20 76 69 2e | 20 4c 6f 6e 67 20 73 74 |from vi.| Long st|
|00003800| 72 69 6e 67 20 6f 70 74 | 69 6f 6e 73 20 61 72 65 |ring opt|ions are|
|00003810| 20 70 75 74 0a 58 61 74 | 20 74 68 65 20 65 6e 64 | put.Xat| the end|
|00003820| 20 6f 66 20 74 68 65 20 | 6c 69 73 74 2e 20 54 68 | of the |list. Th|
|00003830| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6f 70 74 69 |e number| of opti|
|00003840| 6f 6e 73 20 69 73 20 71 | 75 69 74 65 20 6c 61 72 |ons is q|uite lar|
|00003850| 67 65 2e 20 54 68 65 20 | 6f 75 74 70 75 74 20 6f |ge. The |output o|
|00003860| 66 0a 58 22 73 65 74 20 | 61 6c 6c 22 20 70 72 6f |f.X"set |all" pro|
|00003870| 62 61 62 6c 79 20 64 6f | 65 73 20 6e 6f 74 20 66 |bably do|es not f|
|00003880| 69 74 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |it on th|e screen|
|00003890| 2c 20 63 61 75 73 69 6e | 67 20 56 69 6d 20 74 6f |, causin|g Vim to|
|000038a0| 20 67 69 76 65 20 74 68 | 65 0a 58 22 2d 2d 6d 6f | give th|e.X"--mo|
|000038b0| 72 65 2d 2d 22 20 6d 65 | 73 73 61 67 65 2e 20 53 |re--" me|ssage. S|
|000038c0| 65 65 20 74 68 65 20 27 | 6d 6f 72 65 27 20 6f 70 |ee the '|more' op|
|000038d0| 74 69 6f 6e 2e 0a 58 0a | 58 41 6e 20 65 6e 76 69 |tion..X.|XAn envi|
|000038e0| 72 6f 6e 6d 65 6e 74 20 | 76 61 72 69 61 62 6c 65 |ronment |variable|
|000038f0| 20 69 6e 20 6d 6f 73 74 | 20 73 74 72 69 6e 67 20 | in most| string |
|00003900| 6f 70 74 69 6f 6e 73 20 | 77 69 6c 6c 20 62 65 20 |options |will be |
|00003910| 65 78 70 61 6e 64 65 64 | 2e 20 54 68 69 73 0a 58 |expanded|. This.X|
|00003920| 68 61 70 70 65 6e 73 20 | 6f 6e 6c 79 20 77 68 65 |happens |only whe|
|00003930| 6e 20 74 68 65 20 73 74 | 72 69 6e 67 20 73 74 61 |n the st|ring sta|
|00003940| 72 74 73 20 77 69 74 68 | 20 61 20 3c 24 3e 2e 20 |rts with| a <$>. |
|00003950| 49 66 20 74 68 65 20 65 | 6e 76 69 72 6f 6e 6d 65 |If the e|nvironme|
|00003960| 6e 74 20 76 61 72 69 61 | 62 6c 65 0a 58 65 78 69 |nt varia|ble.Xexi|
|00003970| 73 74 73 20 74 68 65 20 | 3c 24 3e 20 61 6e 64 20 |sts the |<$> and |
|00003980| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 65 6e |the foll|owing en|
|00003990| 76 69 72 6f 6e 6d 65 6e | 74 20 76 61 72 69 61 62 |vironmen|t variab|
|000039a0| 6c 65 20 6e 61 6d 65 20 | 69 73 20 72 65 70 6c 61 |le name |is repla|
|000039b0| 63 65 64 20 62 79 0a 58 | 69 74 73 20 76 61 6c 75 |ced by.X|its valu|
|000039c0| 65 2e 20 49 66 20 69 74 | 20 64 6f 65 73 20 6e 6f |e. If it| does no|
|000039d0| 74 20 65 78 69 73 74 20 | 74 68 65 20 3c 24 3e 20 |t exist |the <$> |
|000039e0| 61 6e 64 20 74 68 65 20 | 6e 61 6d 65 20 61 72 65 |and the |name are|
|000039f0| 20 6e 6f 74 20 6d 6f 64 | 69 66 69 65 64 2e 20 41 | not mod|ified. A|
|00003a00| 6e 79 0a 58 6e 6f 6e 2d | 69 64 20 63 68 61 72 61 |ny.Xnon-|id chara|
|00003a10| 63 74 65 72 20 28 6e 6f | 74 20 61 20 6c 65 74 74 |cter (no|t a lett|
|00003a20| 65 72 2c 20 64 69 67 69 | 74 20 6f 72 20 3c 5f 3e |er, digi|t or <_>|
|00003a30| 29 20 6d 61 79 20 66 6f | 6c 6c 6f 77 20 74 68 65 |) may fo|llow the|
|00003a40| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 0a 58 76 61 | environ|ment.Xva|
|00003a50| 72 69 61 62 6c 65 20 6e | 61 6d 65 2e 20 54 68 61 |riable n|ame. Tha|
|00003a60| 74 20 63 68 61 72 61 63 | 74 65 72 20 61 6e 64 20 |t charac|ter and |
|00003a70| 77 68 61 74 20 66 6f 6c | 6c 6f 77 73 20 69 73 20 |what fol|lows is |
|00003a80| 61 70 70 65 6e 64 65 64 | 20 74 6f 20 74 68 65 20 |appended| to the |
|00003a90| 76 61 6c 75 65 20 6f 66 | 0a 58 74 68 65 20 65 6e |value of|.Xthe en|
|00003aa0| 76 69 72 6f 6e 6d 65 6e | 74 20 76 61 72 69 61 62 |vironmen|t variab|
|00003ab0| 6c 65 2e 20 45 78 61 6d | 70 6c 65 3a 0a 58 09 3a |le. Exam|ple:.X.:|
|00003ac0| 73 65 74 20 74 65 72 6d | 3d 24 54 45 52 4d 2e 6e |set term|=$TERM.n|
|00003ad0| 65 77 0a 58 0a 58 55 73 | 69 6e 67 20 22 7e 2f 22 |ew.X.XUs|ing "~/"|
|00003ae0| 20 69 73 20 6c 69 6b 65 | 20 75 73 69 6e 67 20 22 | is like| using "|
|00003af0| 24 48 4f 4d 45 22 2e 0a | 58 0a 58 42 65 73 69 64 |$HOME"..|X.XBesid|
|00003b00| 65 73 20 63 68 61 6e 67 | 69 6e 67 20 6f 70 74 69 |es chang|ing opti|
|00003b10| 6f 6e 73 20 77 69 74 68 | 20 74 68 65 20 22 3a 73 |ons with| the ":s|
|00003b20| 65 74 22 20 63 6f 6d 6d | 61 6e 64 2c 20 74 68 65 |et" comm|and, the|
|00003b30| 72 65 20 61 72 65 20 66 | 6f 75 72 20 0a 58 61 6c |re are f|our .Xal|
|00003b40| 74 65 72 6e 61 74 69 76 | 65 73 20 74 6f 20 73 65 |ternativ|es to se|
|00003b50| 74 20 6f 70 74 69 6f 6e | 73 20 61 75 74 6f 6d 61 |t option|s automa|
|00003b60| 74 69 63 61 6c 6c 79 20 | 66 6f 72 20 6f 6e 65 20 |tically |for one |
|00003b70| 6f 72 20 6d 6f 72 65 20 | 66 69 6c 65 73 2e 20 54 |or more |files. T|
|00003b80| 68 65 20 66 69 72 73 74 | 20 0a 58 61 6e 64 20 73 |he first| .Xand s|
|00003b90| 65 63 6f 6e 64 20 6f 6e | 65 73 20 61 72 65 20 75 |econd on|es are u|
|00003ba0| 73 65 64 20 66 6f 72 20 | 61 6c 6c 20 66 69 6c 65 |sed for |all file|
|00003bb0| 73 2e 20 54 68 65 20 74 | 68 69 72 64 20 69 73 20 |s. The t|hird is |
|00003bc0| 75 73 65 64 20 74 6f 20 | 73 65 74 20 6f 70 74 69 |used to |set opti|
|00003bd0| 6f 6e 73 20 66 6f 72 20 | 0a 58 74 68 65 20 66 69 |ons for |.Xthe fi|
|00003be0| 6c 65 73 20 69 6e 20 6f | 6e 65 20 64 69 72 65 63 |les in o|ne direc|
|00003bf0| 74 6f 72 79 2e 20 54 68 | 65 20 6c 61 73 74 20 69 |tory. Th|e last i|
|00003c00| 73 20 75 73 65 64 20 74 | 6f 20 73 65 74 20 6f 70 |s used t|o set op|
|00003c10| 74 69 6f 6e 73 20 66 6f | 72 20 61 20 73 69 6e 67 |tions fo|r a sing|
|00003c20| 6c 65 20 0a 58 66 69 6c | 65 2e 20 54 68 65 20 66 |le .Xfil|e. The f|
|00003c30| 69 72 73 74 20 74 68 72 | 65 65 20 61 72 65 20 64 |irst thr|ee are d|
|00003c40| 6f 6e 65 20 77 68 65 6e | 20 79 6f 75 20 73 74 61 |one when| you sta|
|00003c50| 72 74 20 56 69 6d 2c 20 | 69 6e 20 74 68 65 20 67 |rt Vim, |in the g|
|00003c60| 69 76 65 6e 20 6f 72 64 | 65 72 2e 20 54 68 65 20 |iven ord|er. The |
|00003c70| 0a 58 6c 61 73 74 20 69 | 73 20 64 6f 6e 65 20 77 |.Xlast i|s done w|
|00003c80| 68 65 6e 65 76 65 72 20 | 79 6f 75 20 73 74 61 72 |henever |you star|
|00003c90| 74 20 65 64 69 74 69 6e | 67 20 61 20 6e 65 77 20 |t editin|g a new |
|00003ca0| 66 69 6c 65 2e 0a 58 0a | 58 31 2e 20 54 68 65 20 |file..X.|X1. The |
|00003cb0| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 76 61 72 69 |environm|ent vari|
|00003cc0| 61 62 6c 65 20 56 49 4d | 49 4e 49 54 20 69 73 20 |able VIM|INIT is |
|00003cd0| 72 65 61 64 20 66 6f 72 | 20 61 6e 20 45 78 20 63 |read for| an Ex c|
|00003ce0| 6f 6d 6d 61 6e 64 2e 20 | 59 6f 75 20 63 61 6e 20 |ommand. |You can |
|00003cf0| 73 65 74 0a 58 20 20 20 | 56 49 4d 49 4e 49 54 20 |set.X |VIMINIT |
|00003d00| 74 6f 20 73 6f 6d 65 74 | 68 69 6e 67 20 6c 69 6b |to somet|hing lik|
|00003d10| 65 20 22 73 65 74 20 6e | 6f 61 69 20 73 77 3d 33 |e "set n|oai sw=3|
|00003d20| 22 20 74 6f 20 73 65 74 | 20 6f 70 74 69 6f 6e 73 |" to set| options|
|00003d30| 2e 0a 58 32 2e 20 4f 6e | 6c 79 20 69 66 20 74 68 |..X2. On|ly if th|
|00003d40| 65 72 65 20 69 73 20 6e | 6f 20 56 49 4d 49 4e 49 |ere is n|o VIMINI|
|00003d50| 54 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 76 61 |T enviro|nment va|
|00003d60| 72 69 61 62 6c 65 2c 20 | 74 68 65 20 66 69 6c 65 |riable, |the file|
|00003d70| 20 0a 58 20 20 20 22 73 | 3a 2e 76 69 6d 72 63 22 | .X "s|:.vimrc"|
|00003d80| 20 69 73 20 72 65 61 64 | 20 66 6f 72 20 45 78 20 | is read| for Ex |
|00003d90| 63 6f 6d 6d 61 6e 64 73 | 2e 20 59 6f 75 20 63 61 |commands|. You ca|
|00003da0| 6e 20 69 6e 63 6c 75 64 | 65 20 73 65 74 20 63 6f |n includ|e set co|
|00003db0| 6d 6d 61 6e 64 73 20 69 | 6e 20 74 68 69 73 20 0a |mmands i|n this .|
|00003dc0| 58 20 20 20 66 69 6c 65 | 2e 20 28 73 65 65 20 62 |X file|. (see b|
|00003dd0| 65 6c 6f 77 20 66 6f 72 | 20 68 6f 77 20 74 6f 20 |elow for| how to |
|00003de0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 63 72 |automati|cally cr|
|00003df0| 65 61 74 65 20 61 20 66 | 69 6c 65 20 77 69 74 68 |eate a f|ile with|
|00003e00| 20 73 65 74 20 63 6f 6d | 6d 61 6e 64 73 29 2e 0a | set com|mands)..|
|00003e10| 58 33 2e 20 49 66 20 56 | 49 4d 49 4e 49 54 20 69 |X3. If V|IMINIT i|
|00003e20| 73 20 6e 6f 74 20 66 6f | 75 6e 64 20 61 6e 64 20 |s not fo|und and |
|00003e30| 22 73 3a 2e 76 69 6d 72 | 63 22 20 64 6f 65 73 20 |"s:.vimr|c" does |
|00003e40| 6e 6f 74 20 65 78 69 73 | 74 2c 20 45 58 49 4e 49 |not exis|t, EXINI|
|00003e50| 54 20 69 73 20 75 73 65 | 64 2c 20 0a 58 20 20 20 |T is use|d, .X |
|00003e60| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 77 61 79 20 |in the s|ame way |
|00003e70| 61 73 20 56 49 4d 49 4e | 49 54 2e 0a 58 34 2e 20 |as VIMIN|IT..X4. |
|00003e80| 49 66 20 56 49 4d 49 4e | 49 54 20 69 73 20 6e 6f |If VIMIN|IT is no|
|00003e90| 74 20 66 6f 75 6e 64 2c | 20 22 73 3a 2e 76 69 6d |t found,| "s:.vim|
|00003ea0| 72 63 22 20 64 6f 65 73 | 20 6e 6f 74 20 65 78 69 |rc" does| not exi|
|00003eb0| 73 74 20 61 6e 64 20 45 | 58 49 4e 49 54 20 69 73 |st and E|XINIT is|
|00003ec0| 20 6e 6f 74 20 66 6f 75 | 6e 64 2c 20 0a 58 20 20 | not fou|nd, .X |
|00003ed0| 20 74 68 65 20 66 69 6c | 65 20 22 73 3a 2e 65 78 | the fil|e "s:.ex|
|00003ee0| 72 63 22 20 69 73 20 72 | 65 61 64 20 66 6f 72 20 |rc" is r|ead for |
|00003ef0| 45 78 20 63 6f 6d 6d 61 | 6e 64 73 2e 0a 58 35 2e |Ex comma|nds..X5.|
|00003f00| 20 49 66 20 74 68 65 20 | 27 65 78 72 63 27 20 6f | If the |'exrc' o|
|00003f10| 70 74 69 6f 6e 20 69 73 | 20 73 65 74 2c 20 74 68 |ption is| set, th|
|00003f20| 65 20 66 69 6c 65 20 22 | 2e 76 69 6d 72 63 22 20 |e file "|.vimrc" |
|00003f30| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 64 |in the c|urrent d|
|00003f40| 69 72 65 63 74 6f 72 79 | 20 69 73 20 0a 58 20 20 |irectory| is .X |
|00003f50| 20 72 65 61 64 20 66 6f | 72 20 45 78 20 63 6f 6d | read fo|r Ex com|
|00003f60| 6d 61 6e 64 73 2e 20 59 | 6f 75 20 63 61 6e 20 69 |mands. Y|ou can i|
|00003f70| 6e 63 6c 75 64 65 20 73 | 65 74 20 63 6f 6d 6d 61 |nclude s|et comma|
|00003f80| 6e 64 73 20 69 6e 20 74 | 68 69 73 20 66 69 6c 65 |nds in t|his file|
|00003f90| 2e 20 49 66 20 74 68 69 | 73 20 0a 58 20 20 20 66 |. If thi|s .X f|
|00003fa0| 69 6c 65 20 69 73 20 6e | 6f 74 20 66 6f 75 6e 64 |ile is n|ot found|
|00003fb0| 20 74 68 65 20 66 69 6c | 65 20 22 2e 65 78 72 63 | the fil|e ".exrc|
|00003fc0| 22 20 69 73 20 74 72 69 | 65 64 2e 0a 58 36 2e 20 |" is tri|ed..X6. |
|00003fd0| 49 66 20 79 6f 75 20 73 | 74 61 72 74 20 65 64 69 |If you s|tart edi|
|00003fe0| 74 69 6e 67 20 61 20 6e | 65 77 20 66 69 6c 65 2c |ting a n|ew file,|
|00003ff0| 20 61 6e 64 20 74 68 65 | 20 27 6d 6f 64 65 6c 69 | and the| 'modeli|
|00004000| 6e 65 27 20 6f 70 74 69 | 6f 6e 20 69 73 20 73 65 |ne' opti|on is se|
|00004010| 74 2c 20 61 0a 58 20 20 | 20 6e 75 6d 62 65 72 20 |t, a.X | number |
|00004020| 6f 66 20 6c 69 6e 65 73 | 20 61 74 20 74 68 65 20 |of lines| at the |
|00004030| 62 65 67 69 6e 6e 69 6e | 67 20 61 6e 64 20 65 6e |beginnin|g and en|
|00004040| 64 20 6f 66 20 74 68 65 | 20 66 69 6c 65 20 61 72 |d of the| file ar|
|00004050| 65 20 63 68 65 63 6b 65 | 64 20 66 6f 72 20 74 68 |e checke|d for th|
|00004060| 65 0a 58 20 20 20 73 74 | 72 69 6e 67 20 22 76 69 |e.X st|ring "vi|
|00004070| 3a 22 2c 20 22 76 69 6d | 3a 22 20 6f 72 20 22 65 |:", "vim|:" or "e|
|00004080| 78 3a 22 2e 20 54 68 65 | 20 74 65 78 74 20 61 66 |x:". The| text af|
|00004090| 74 65 72 20 69 74 20 69 | 73 20 63 6f 6e 73 69 64 |ter it i|s consid|
|000040a0| 65 72 65 64 20 74 6f 20 | 62 65 20 74 68 65 0a 58 |ered to |be the.X|
|000040b0| 20 20 20 61 72 67 75 6d | 65 6e 74 73 20 66 6f 72 | argum|ents for|
|000040c0| 20 61 20 22 3a 73 65 74 | 22 20 63 6f 6d 6d 61 6e | a ":set|" comman|
|000040d0| 64 2c 20 73 65 70 61 72 | 61 74 65 64 20 77 69 74 |d, separ|ated wit|
|000040e0| 68 20 63 6f 6c 6f 6e 73 | 20 6f 72 20 73 70 61 63 |h colons| or spac|
|000040f0| 65 73 2e 20 46 6f 72 0a | 58 20 20 20 65 78 61 6d |es. For.|X exam|
|00004100| 70 6c 65 3a 0a 58 20 20 | 20 09 09 22 76 69 3a 6e |ple:.X | .."vi:n|
|00004110| 6f 61 69 3a 73 77 3d 33 | 20 74 73 3d 36 22 0a 58 |oai:sw=3| ts=6".X|
|00004120| 20 20 20 54 68 65 20 6e | 75 6d 62 65 72 20 6f 66 | The n|umber of|
|00004130| 20 6c 69 6e 65 73 20 74 | 68 61 74 20 61 72 65 20 | lines t|hat are |
|00004140| 63 68 65 63 6b 65 64 20 | 63 61 6e 20 62 65 20 73 |checked |can be s|
|00004150| 65 74 20 77 69 74 68 20 | 74 68 65 20 27 6d 6f 64 |et with |the 'mod|
|00004160| 65 6c 69 6e 65 73 27 0a | 58 20 20 20 6f 70 74 69 |elines'.|X opti|
|00004170| 6f 6e 2e 20 49 66 20 27 | 6d 6f 64 65 6c 69 6e 65 |on. If '|modeline|
|00004180| 27 20 69 73 20 6e 6f 74 | 20 73 65 74 20 6f 72 20 |' is not| set or |
|00004190| 27 6d 6f 64 65 6c 69 6e | 65 73 27 20 69 73 20 30 |'modelin|es' is 0|
|000041a0| 20 6e 6f 20 6c 69 6e 65 | 73 20 61 72 65 0a 58 20 | no line|s are.X |
|000041b0| 20 20 63 68 65 63 6b 65 | 64 2e 0a 58 20 20 20 54 | checke|d..X T|
|000041c0| 68 65 20 73 74 72 69 6e | 67 20 22 76 69 3a 22 2c |he strin|g "vi:",|
|000041d0| 20 22 76 69 6d 3a 22 20 | 6f 72 20 22 65 78 3a 22 | "vim:" |or "ex:"|
|000041e0| 20 6d 75 73 74 20 62 65 | 20 70 72 65 63 65 64 65 | must be| precede|
|000041f0| 64 20 77 69 74 68 20 61 | 20 62 6c 61 6e 6b 20 6f |d with a| blank o|
|00004200| 72 20 62 65 67 69 6e 20 | 0a 58 20 20 20 61 74 20 |r begin |.X at |
|00004210| 74 68 65 20 73 74 61 72 | 74 20 6f 66 20 61 20 6c |the star|t of a l|
|00004220| 69 6e 65 2e 20 54 68 69 | 73 20 6d 69 6e 69 6d 69 |ine. Thi|s minimi|
|00004230| 7a 65 73 20 74 68 65 20 | 63 68 61 6e 63 65 20 74 |zes the |chance t|
|00004240| 68 61 74 20 61 20 6e 6f | 72 6d 61 6c 20 77 6f 72 |hat a no|rmal wor|
|00004250| 64 20 6c 69 6b 65 20 0a | 58 20 20 20 22 6c 65 78 |d like .|X "lex|
|00004260| 3a 22 20 69 73 20 63 61 | 75 67 68 74 2e 0a 58 20 |:" is ca|ught..X |
|00004270| 20 20 4e 6f 74 65 20 74 | 68 61 74 20 61 6c 6c 20 | Note t|hat all |
|00004280| 6f 66 20 74 68 65 20 72 | 65 73 74 20 6f 66 20 74 |of the r|est of t|
|00004290| 68 65 20 6c 69 6e 65 20 | 69 73 20 75 73 65 64 2c |he line |is used,|
|000042a0| 20 74 68 75 73 20 61 20 | 6c 69 6e 65 20 6c 69 6b | thus a |line lik|
|000042b0| 65 3a 0a 58 20 20 20 09 | 09 22 2f 2a 20 76 69 3a |e:.X .|."/* vi:|
|000042c0| 74 73 3d 34 3a 20 2a 2f | 22 0a 58 20 20 20 77 69 |ts=4: */|".X wi|
|000042d0| 6c 6c 20 67 69 76 65 20 | 61 6e 20 65 72 72 6f 72 |ll give |an error|
|000042e0| 20 6d 65 73 73 61 67 65 | 20 66 6f 72 20 74 68 65 | message| for the|
|000042f0| 20 74 72 61 69 6c 69 6e | 67 20 22 2a 2f 22 2e 0a | trailin|g "*/"..|
|00004300| 58 20 20 20 49 66 20 61 | 6e 20 65 72 72 6f 72 20 |X If a|n error |
|00004310| 69 73 20 64 65 74 65 63 | 74 65 64 20 74 68 65 20 |is detec|ted the |
|00004320| 72 65 73 74 20 6f 66 20 | 74 68 65 20 6c 69 6e 65 |rest of |the line|
|00004330| 20 69 73 20 73 6b 69 70 | 70 65 64 2e 0a 58 20 20 | is skip|ped..X |
|00004340| 20 4f 6e 65 20 6f 74 68 | 65 72 20 66 6f 72 6d 20 | One oth|er form |
|00004350| 6f 66 20 6d 6f 64 65 6c | 69 6e 65 73 20 69 73 20 |of model|ines is |
|00004360| 72 65 63 6f 67 6e 69 7a | 65 64 20 74 68 61 74 20 |recogniz|ed that |
|00004370| 68 61 73 20 74 68 65 20 | 22 73 65 74 22 20 63 6f |has the |"set" co|
|00004380| 6d 6d 61 6e 64 0a 58 20 | 20 20 61 66 74 65 72 20 |mmand.X | after |
|00004390| 22 76 69 3a 22 2c 20 22 | 76 69 6d 3a 22 20 6f 72 |"vi:", "|vim:" or|
|000043a0| 20 22 65 78 3a 22 20 28 | 74 68 69 73 20 69 73 20 | "ex:" (|this is |
|000043b0| 63 6f 6d 70 61 74 69 62 | 6c 65 20 77 69 74 68 20 |compatib|le with |
|000043c0| 73 6f 6d 65 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 |some ver|sions of|
|000043d0| 0a 58 20 20 20 76 69 29 | 2e 20 49 6e 20 74 68 69 |.X vi)|. In thi|
|000043e0| 73 20 63 61 73 65 20 74 | 68 65 20 63 68 61 72 61 |s case t|he chara|
|000043f0| 63 74 65 72 73 20 75 70 | 20 74 6f 20 74 68 65 20 |cters up| to the |
|00004400| 66 69 72 73 74 20 3c 3a | 3e 20 61 72 65 20 65 78 |first <:|> are ex|
|00004410| 65 63 75 74 65 64 20 61 | 73 20 61 6e 0a 58 20 20 |ecuted a|s an.X |
|00004420| 20 65 78 20 63 6f 6d 6d | 61 6e 64 2e 20 41 6e 79 | ex comm|and. Any|
|00004430| 74 68 69 6e 67 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |thing fo|llowing |
|00004440| 69 74 20 69 73 20 69 67 | 6e 6f 72 65 64 2e 20 54 |it is ig|nored. T|
|00004450| 68 75 73 20 61 20 6c 69 | 6e 65 20 6c 69 6b 65 3a |hus a li|ne like:|
|00004460| 0a 58 20 20 20 09 09 22 | 2f 2a 20 76 69 3a 73 65 |.X .."|/* vi:se|
|00004470| 74 20 74 73 3d 34 3a 20 | 2a 2f 22 0a 58 20 20 20 |t ts=4: |*/".X |
|00004480| 69 73 20 4f 4b 2e 20 49 | 66 20 79 6f 75 20 77 61 |is OK. I|f you wa|
|00004490| 6e 74 20 74 6f 20 69 6e | 63 6c 75 64 65 20 61 20 |nt to in|clude a |
|000044a0| 3c 3a 3e 20 69 6e 20 61 | 20 73 65 74 20 63 6f 6d |<:> in a| set com|
|000044b0| 6d 61 6e 64 20 70 72 65 | 63 65 64 65 20 69 74 20 |mand pre|cede it |
|000044c0| 77 69 74 68 20 61 0a 58 | 20 20 20 3c 5c 3e 2e 0a |with a.X| <\>..|
|000044d0| 58 0a 58 0a 58 31 39 2e | 32 20 53 61 76 69 6e 67 |X.X.X19.|2 Saving|
|000044e0| 20 73 65 74 74 69 6e 67 | 73 0a 58 0a 58 3a 6d 6b | setting|s.X.X:mk|
|000044f0| 65 78 72 63 20 5b 66 69 | 6c 65 5d 09 09 57 72 69 |exrc [fi|le]..Wri|
|00004500| 74 65 20 63 75 72 72 65 | 6e 74 20 6b 65 79 20 6d |te curre|nt key m|
|00004510| 61 70 70 69 6e 67 73 20 | 61 6e 64 20 63 68 61 6e |appings |and chan|
|00004520| 67 65 64 20 6f 70 74 69 | 6f 6e 73 20 74 6f 20 0a |ged opti|ons to .|
|00004530| 58 09 09 09 5b 66 69 6c | 65 5d 20 28 64 65 66 61 |X...[fil|e] (defa|
|00004540| 75 6c 74 20 22 2e 65 78 | 72 63 22 29 2c 20 75 6e |ult ".ex|rc"), un|
|00004550| 6c 65 73 73 20 69 74 20 | 61 6c 72 65 61 64 79 20 |less it |already |
|00004560| 65 78 69 73 74 73 2e 20 | 0a 58 09 09 09 7b 6e 6f |exists. |.X...{no|
|00004570| 74 20 69 6e 20 56 69 7d | 0a 58 0a 58 3a 6d 6b 65 |t in Vi}|.X.X:mke|
|00004580| 78 72 63 21 20 5b 66 69 | 6c 65 5d 09 09 41 6c 77 |xrc! [fi|le]..Alw|
|00004590| 61 79 73 20 77 72 69 74 | 65 20 63 75 72 72 65 6e |ays writ|e curren|
|000045a0| 74 20 6b 65 79 20 6d 61 | 70 70 69 6e 67 73 20 61 |t key ma|ppings a|
|000045b0| 6e 64 20 63 68 61 6e 67 | 65 64 20 0a 58 09 09 09 |nd chang|ed .X...|
|000045c0| 6f 70 74 69 6f 6e 73 20 | 74 6f 20 5b 66 69 6c 65 |options |to [file|
|000045d0| 5d 20 28 64 65 66 61 75 | 6c 74 20 22 2e 65 78 72 |] (defau|lt ".exr|
|000045e0| 63 22 29 2e 20 7b 6e 6f | 74 20 69 6e 20 56 69 7d |c"). {no|t in Vi}|
|000045f0| 0a 58 0a 58 3a 6d 6b 76 | 69 6d 72 63 5b 21 5d 20 |.X.X:mkv|imrc[!] |
|00004600| 5b 66 69 6c 65 5d 09 53 | 61 6d 65 20 61 73 20 3a |[file].S|ame as :|
|00004610| 6d 6b 65 78 72 63 2c 20 | 62 75 74 20 64 65 66 61 |mkexrc, |but defa|
|00004620| 75 6c 74 20 69 73 20 22 | 2e 76 69 6d 72 63 22 2e |ult is "|.vimrc".|
|00004630| 20 7b 6e 6f 74 20 69 6e | 20 0a 58 09 09 09 56 69 | {not in| .X...Vi|
|00004640| 7d 0a 58 0a 58 54 68 65 | 73 65 20 63 6f 6d 6d 61 |}.X.XThe|se comma|
|00004650| 6e 64 73 20 77 69 6c 6c | 20 77 72 69 74 65 20 22 |nds will| write "|
|00004660| 3a 6d 61 70 22 20 61 6e | 64 20 22 3a 73 65 74 22 |:map" an|d ":set"|
|00004670| 20 63 6f 6d 6d 61 6e 64 | 73 20 74 6f 20 61 20 66 | command|s to a f|
|00004680| 69 6c 65 2c 20 69 6e 20 | 73 75 63 68 20 61 20 0a |ile, in |such a .|
|00004690| 58 77 61 79 20 74 68 61 | 74 20 77 68 65 6e 20 74 |Xway tha|t when t|
|000046a0| 68 65 73 65 20 63 6f 6d | 6d 61 6e 64 73 20 61 72 |hese com|mands ar|
|000046b0| 65 20 65 78 65 63 75 74 | 65 64 2c 20 74 68 65 20 |e execut|ed, the |
|000046c0| 63 75 72 72 65 6e 74 20 | 6b 65 79 20 6d 61 70 70 |current |key mapp|
|000046d0| 69 6e 67 73 20 61 6e 64 | 20 0a 58 6f 70 74 69 6f |ings and| .Xoptio|
|000046e0| 6e 73 20 77 69 6c 6c 20 | 62 65 20 73 65 74 20 61 |ns will |be set a|
|000046f0| 67 61 69 6e 2e 20 41 20 | 63 6f 6d 6d 6f 6e 20 6d |gain. A |common m|
|00004700| 65 74 68 6f 64 20 69 73 | 20 74 6f 20 75 73 65 20 |ethod is| to use |
|00004710| 61 20 64 65 66 61 75 6c | 74 20 22 2e 65 78 72 63 |a defaul|t ".exrc|
|00004720| 22 20 66 69 6c 65 20 0a | 58 62 79 20 66 69 72 73 |" file .|Xby firs|
|00004730| 74 20 72 65 61 64 69 6e | 67 20 6f 6e 65 20 69 6e |t readin|g one in|
|00004740| 20 77 69 74 68 20 22 3a | 73 6f 75 72 63 65 20 73 | with ":|source s|
|00004750| 3a 2e 65 78 72 63 2e 43 | 70 72 6f 67 73 22 2c 20 |:.exrc.C|progs", |
|00004760| 63 68 61 6e 67 65 20 74 | 68 65 20 73 65 74 74 69 |change t|he setti|
|00004770| 6e 67 73 20 0a 58 61 6e | 64 20 74 68 65 6e 20 73 |ngs .Xan|d then s|
|00004780| 61 76 65 20 74 68 65 6d | 20 69 6e 20 74 68 65 20 |ave them| in the |
|00004790| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|000047a0| 79 20 77 69 74 68 20 22 | 3a 6d 6b 65 78 72 63 21 |y with "|:mkexrc!|
|000047b0| 22 2e 0a 58 0a 58 0a 58 | 31 39 2e 33 20 4f 70 74 |"..X.X.X|19.3 Opt|
|000047c0| 69 6f 6e 73 20 73 75 6d | 6d 61 72 79 0a 58 0a 58 |ions sum|mary.X.X|
|000047d0| 49 6e 20 74 68 65 20 6c | 69 73 74 20 62 65 6c 6f |In the l|ist belo|
|000047e0| 77 20 61 6c 6c 20 74 68 | 65 20 6f 70 74 69 6f 6e |w all th|e option|
|000047f0| 73 20 61 72 65 20 6d 65 | 6e 74 69 6f 6e 65 64 20 |s are me|ntioned |
|00004800| 77 69 74 68 20 74 68 65 | 69 72 20 66 75 6c 6c 20 |with the|ir full |
|00004810| 6e 61 6d 65 20 61 6e 64 | 20 73 6f 6d 65 0a 58 77 |name and| some.Xw|
|00004820| 69 74 68 20 61 6e 20 61 | 62 62 72 65 76 69 61 74 |ith an a|bbreviat|
|00004830| 69 6f 6e 20 62 65 74 77 | 65 65 6e 20 70 61 72 65 |ion betw|een pare|
|00004840| 6e 73 2e 20 42 6f 74 68 | 20 66 6f 72 6d 73 20 6d |ns. Both| forms m|
|00004850| 61 79 20 62 65 20 75 73 | 65 64 2e 20 49 6e 20 74 |ay be us|ed. In t|
|00004860| 68 69 73 0a 58 64 6f 63 | 75 6d 65 6e 74 20 77 68 |his.Xdoc|ument wh|
|00004870| 65 6e 20 61 6e 20 6f 70 | 74 69 6f 6e 20 74 68 61 |en an op|tion tha|
|00004880| 74 20 63 61 6e 20 62 65 | 20 74 6f 67 67 6c 65 64 |t can be| toggled|
|00004890| 20 69 73 20 22 73 65 74 | 22 20 74 68 61 74 20 6d | is "set|" that m|
|000048a0| 65 61 6e 73 20 74 68 61 | 74 20 22 3a 73 65 74 0a |eans tha|t ":set.|
|000048b0| 58 6f 70 74 69 6f 6e 22 | 20 69 73 20 65 6e 74 65 |Xoption"| is ente|
|000048c0| 72 65 64 2e 20 20 57 68 | 65 6e 20 61 6e 20 6f 70 |red. Wh|en an op|
|000048d0| 74 69 6f 6e 20 69 73 20 | 22 72 65 73 65 74 22 2c |tion is |"reset",|
|000048e0| 20 22 3a 73 65 74 20 6e | 6f 6f 70 74 69 6f 6e 22 | ":set n|ooption"|
|000048f0| 20 69 73 20 75 73 65 64 | 2e 0a 58 0a 58 61 75 74 | is used|..X.Xaut|
|00004900| 6f 69 6e 64 65 6e 74 20 | 28 61 69 29 09 09 74 6f |oindent |(ai)..to|
|00004910| 67 67 6c 65 09 28 64 65 | 66 61 75 6c 74 20 6f 66 |ggle.(de|fault of|
|00004920| 66 29 0a 58 09 43 6f 70 | 79 20 69 6e 64 65 6e 74 |f).X.Cop|y indent|
|00004930| 20 66 72 6f 6d 20 63 75 | 72 72 65 6e 74 20 6c 69 | from cu|rrent li|
|00004940| 6e 65 20 77 68 65 6e 20 | 73 74 61 72 74 69 6e 67 |ne when |starting|
|00004950| 20 61 20 6e 65 77 20 6c | 69 6e 65 20 28 74 79 70 | a new l|ine (typ|
|00004960| 69 6e 67 20 3c 43 52 3e | 20 0a 58 09 69 6e 20 49 |ing <CR>| .X.in I|
|00004970| 6e 73 65 72 74 20 6d 6f | 64 65 20 6f 72 20 77 68 |nsert mo|de or wh|
|00004980| 65 6e 20 75 73 69 6e 67 | 20 74 68 65 20 22 6f 22 |en using| the "o"|
|00004990| 20 6f 72 20 22 4f 22 20 | 63 6f 6d 6d 61 6e 64 29 | or "O" |command)|
|000049a0| 2e 20 49 66 20 79 6f 75 | 20 64 6f 20 6e 6f 74 20 |. If you| do not |
|000049b0| 0a 58 09 74 79 70 65 20 | 61 6e 79 74 68 69 6e 67 |.X.type |anything|
|000049c0| 20 6f 6e 20 74 68 65 20 | 6e 65 77 20 6c 69 6e 65 | on the |new line|
|000049d0| 20 65 78 63 65 70 74 20 | 3c 42 53 3e 20 61 6e 64 | except |<BS> and|
|000049e0| 20 74 68 65 6e 20 74 79 | 70 65 20 3c 45 53 43 3e | then ty|pe <ESC>|
|000049f0| 20 6f 72 20 0a 58 09 3c | 43 52 3e 2c 20 74 68 65 | or .X.<|CR>, the|
|00004a00| 20 69 6e 64 65 6e 74 20 | 69 73 20 64 65 6c 65 74 | indent |is delet|
|00004a10| 65 64 20 61 67 61 69 6e | 2e 20 57 68 65 6e 20 61 |ed again|. When a|
|00004a20| 75 74 6f 69 6e 64 65 6e | 74 20 69 73 20 73 65 74 |utoinden|t is set|
|00004a30| 2c 20 0a 58 09 66 6f 72 | 6d 61 74 74 69 6e 67 20 |, .X.for|matting |
|00004a40| 28 77 69 74 68 20 74 68 | 65 20 22 51 22 20 63 6f |(with th|e "Q" co|
|00004a50| 6d 6d 61 6e 64 20 6f 72 | 20 77 68 65 6e 20 79 6f |mmand or| when yo|
|00004a60| 75 20 72 65 61 63 68 20 | 27 74 65 78 74 77 69 64 |u reach |'textwid|
|00004a70| 74 68 27 20 69 6e 20 0a | 58 09 49 6e 73 65 72 74 |th' in .|X.Insert|
|00004a80| 20 6d 6f 64 65 29 20 75 | 73 65 73 20 74 68 65 20 | mode) u|ses the |
|00004a90| 69 6e 64 65 6e 74 61 74 | 69 6f 6e 20 6f 66 20 74 |indentat|ion of t|
|00004aa0| 68 65 20 66 69 72 73 74 | 20 6c 69 6e 65 2e 20 54 |he first| line. T|
|00004ab0| 68 65 20 27 61 75 74 6f | 69 6e 64 65 6e 74 27 0a |he 'auto|indent'.|
|00004ac0| 58 09 6f 70 74 69 6f 6e | 20 69 73 20 72 65 73 65 |X.option| is rese|
|00004ad0| 74 20 77 68 65 6e 20 74 | 68 65 20 27 70 61 73 74 |t when t|he 'past|
|00004ae0| 65 27 20 6f 70 74 69 6f | 6e 20 69 73 20 73 65 74 |e' optio|n is set|
|00004af0| 2e 0a 58 0a 58 61 75 74 | 6f 77 72 69 74 65 20 28 |..X.Xaut|owrite (|
|00004b00| 61 77 29 09 09 74 6f 67 | 67 6c 65 09 28 64 65 66 |aw)..tog|gle.(def|
|00004b10| 61 75 6c 74 20 6f 66 66 | 29 0a 58 09 57 72 69 74 |ault off|).X.Writ|
|00004b20| 65 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |e the co|ntents o|
|00004b30| 66 20 74 68 65 20 66 69 | 6c 65 2c 20 69 66 20 69 |f the fi|le, if i|
|00004b40| 74 20 68 61 73 20 62 65 | 65 6e 20 6d 6f 64 69 66 |t has be|en modif|
|00004b50| 69 65 64 2c 20 6f 6e 20 | 65 61 63 68 0a 58 09 3a |ied, on |each.X.:|
|00004b60| 6e 65 78 74 2c 20 3a 72 | 65 77 69 6e 64 2c 20 3a |next, :r|ewind, :|
|00004b70| 70 72 65 76 69 6f 75 73 | 2c 20 3a 73 74 6f 70 2c |previous|, :stop,|
|00004b80| 20 3a 73 75 73 70 65 6e | 64 2c 20 3a 74 61 67 2c | :suspen|d, :tag,|
|00004b90| 20 3a 21 2c 20 3a 6d 61 | 6b 65 2c 20 43 54 52 4c | :!, :ma|ke, CTRL|
|00004ba0| 2d 5d 0a 58 09 61 6e 64 | 20 43 54 52 4c 2d 5e 20 |-].X.and| CTRL-^ |
|00004bb0| 63 6f 6d 6d 61 6e 64 3b | 20 61 6e 64 20 77 68 65 |command;| and whe|
|00004bc0| 6e 20 61 20 43 54 52 4c | 2d 4f 2c 20 43 54 52 4c |n a CTRL|-O, CTRL|
|00004bd0| 2d 49 2c 20 27 3c 41 2d | 5a 3e 2c 20 6f 72 20 60 |-I, '<A-|Z>, or `|
|00004be0| 3c 41 2d 5a 3e 0a 58 09 | 63 6f 6d 6d 61 6e 64 20 |<A-Z>.X.|command |
|00004bf0| 74 61 6b 65 73 20 6f 6e | 65 20 74 6f 20 61 6e 6f |takes on|e to ano|
|00004c00| 74 68 65 72 20 66 69 6c | 65 2e 0a 58 0a 58 62 61 |ther fil|e..X.Xba|
|00004c10| 63 6b 73 70 61 63 65 20 | 28 62 73 29 09 09 6e 75 |ckspace |(bs)..nu|
|00004c20| 6d 62 65 72 09 28 64 65 | 66 61 75 6c 74 20 30 29 |mber.(de|fault 0)|
|00004c30| 0a 58 09 49 6e 66 6c 75 | 65 6e 63 65 73 20 74 68 |.X.Influ|ences th|
|00004c40| 65 20 77 6f 72 6b 69 6e | 67 20 6f 66 20 3c 42 53 |e workin|g of <BS|
|00004c50| 3e 2c 20 3c 44 45 4c 3e | 2c 20 43 54 52 4c 2d 57 |>, <DEL>|, CTRL-W|
|00004c60| 20 61 6e 64 20 43 54 52 | 4c 2d 55 20 69 6e 20 49 | and CTR|L-U in I|
|00004c70| 6e 73 65 72 74 20 0a 58 | 09 6d 6f 64 65 2e 20 49 |nsert .X|.mode. I|
|00004c80| 66 20 73 65 74 20 74 6f | 20 30 20 56 69 20 63 6f |f set to| 0 Vi co|
|00004c90| 6d 70 61 74 69 62 6c 65 | 20 62 61 63 6b 73 70 61 |mpatible| backspa|
|00004ca0| 63 69 6e 67 20 69 73 20 | 75 73 65 64 2e 20 57 68 |cing is |used. Wh|
|00004cb0| 65 6e 20 31 20 61 6c 6c | 6f 77 20 0a 58 09 62 61 |en 1 all|ow .X.ba|
|00004cc0| 63 6b 73 70 61 63 69 6e | 67 20 6f 76 65 72 20 6e |ckspacin|g over n|
|00004cd0| 65 77 6c 69 6e 65 73 2e | 20 57 68 65 6e 20 6c 61 |ewlines.| When la|
|00004ce0| 72 67 65 72 20 74 68 61 | 6e 20 31 20 61 6c 6c 6f |rger tha|n 1 allo|
|00004cf0| 77 20 62 61 63 6b 73 70 | 61 63 69 6e 67 20 6f 76 |w backsp|acing ov|
|00004d00| 65 72 20 0a 58 09 74 68 | 65 20 73 74 61 72 74 20 |er .X.th|e start |
|00004d10| 6f 66 20 69 6e 73 65 72 | 74 2e 20 49 6e 20 74 68 |of inser|t. In th|
|00004d20| 65 20 6c 61 73 74 20 63 | 61 73 65 20 43 54 52 4c |e last c|ase CTRL|
|00004d30| 2d 57 20 61 6e 64 20 43 | 54 52 4c 2d 55 20 73 74 |-W and C|TRL-U st|
|00004d40| 6f 70 20 6f 6e 63 65 20 | 61 74 20 0a 58 09 74 68 |op once |at .X.th|
|00004d50| 65 20 73 74 61 72 74 20 | 6f 66 20 69 6e 73 65 72 |e start |of inser|
|00004d60| 74 2e 20 7b 6e 6f 74 20 | 69 6e 20 56 69 7d 0a 58 |t. {not |in Vi}.X|
|00004d70| 0a 58 62 61 63 6b 75 70 | 20 28 62 6b 29 09 09 74 |.Xbackup| (bk)..t|
|00004d80| 6f 67 67 6c 65 09 28 64 | 65 66 61 75 6c 74 20 6f |oggle.(d|efault o|
|00004d90| 6e 29 0a 58 09 4d 61 6b | 65 20 61 20 62 61 63 6b |n).X.Mak|e a back|
|00004da0| 75 70 20 62 65 66 6f 72 | 65 20 6f 76 65 72 77 72 |up befor|e overwr|
|00004db0| 69 74 69 6e 67 20 61 20 | 66 69 6c 65 2e 20 4c 65 |iting a |file. Le|
|00004dc0| 61 76 65 20 69 74 20 61 | 72 6f 75 6e 64 20 61 66 |ave it a|round af|
|00004dd0| 74 65 72 20 74 68 65 20 | 0a 58 09 66 69 6c 65 20 |ter the |.X.file |
|00004de0| 68 61 73 20 62 65 65 6e | 20 73 75 63 63 65 73 73 |has been| success|
|00004df0| 66 75 6c 6c 79 20 77 72 | 69 74 74 65 6e 2e 20 49 |fully wr|itten. I|
|00004e00| 66 20 79 6f 75 20 64 6f | 20 6e 6f 74 20 77 61 6e |f you do| not wan|
|00004e10| 74 20 74 6f 20 6b 65 65 | 70 20 74 68 65 20 0a 58 |t to kee|p the .X|
|00004e20| 09 62 61 63 6b 75 70 20 | 66 69 6c 65 2c 20 62 75 |.backup |file, bu|
|00004e30| 74 20 79 6f 75 20 64 6f | 20 77 61 6e 74 20 61 20 |t you do| want a |
|00004e40| 62 61 63 6b 75 70 20 77 | 68 69 6c 65 20 74 68 65 |backup w|hile the|
|00004e50| 20 66 69 6c 65 20 69 73 | 20 62 65 69 6e 67 0a 58 | file is| being.X|
|00004e60| 09 77 72 69 74 74 65 6e | 2c 20 72 65 73 65 74 20 |.written|, reset |
|00004e70| 74 68 69 73 20 6f 70 74 | 69 6f 6e 20 61 6e 64 20 |this opt|ion and |
|00004e80| 73 65 74 20 74 68 65 20 | 27 77 72 69 74 65 62 61 |set the |'writeba|
|00004e90| 63 6b 75 70 27 20 6f 70 | 74 69 6f 6e 2e 20 49 66 |ckup' op|tion. If|
|00004ea0| 20 79 6f 75 0a 58 09 64 | 6f 20 6e 6f 74 20 77 61 | you.X.d|o not wa|
|00004eb0| 6e 74 20 61 20 62 61 63 | 6b 75 70 20 66 69 6c 65 |nt a bac|kup file|
|00004ec0| 20 61 74 20 61 6c 6c 20 | 72 65 73 65 74 20 62 6f | at all |reset bo|
|00004ed0| 74 68 20 6f 70 74 69 6f | 6e 73 20 28 53 65 65 20 |th optio|ns (See |
|00004ee0| 74 68 65 20 74 61 62 6c | 65 0a 58 09 69 6e 20 73 |the tabl|e.X.in s|
|00004ef0| 65 63 74 69 6f 6e 20 35 | 2e 34 20 66 6f 72 20 61 |ection 5|.4 for a|
|00004f00| 6e 6f 74 68 65 72 20 65 | 78 70 6c 61 6e 61 74 69 |nother e|xplanati|
|00004f10| 6f 6e 2e 29 2e 20 7b 6e | 6f 74 20 69 6e 20 56 69 |on.). {n|ot in Vi|
|00004f20| 7d 0a 58 0a 58 62 61 63 | 6b 75 70 64 69 72 20 28 |}.X.Xbac|kupdir (|
|00004f30| 62 64 69 72 29 09 73 74 | 72 69 6e 67 09 28 64 65 |bdir).st|ring.(de|
|00004f40| 66 61 75 6c 74 20 22 24 | 48 4f 4d 45 22 29 0a 58 |fault "$|HOME").X|
|00004f50| 09 44 69 72 65 63 74 6f | 72 79 20 6e 61 6d 65 20 |.Directo|ry name |
|00004f60| 66 6f 72 20 74 68 65 20 | 62 61 63 6b 75 70 20 66 |for the |backup f|
|00004f70| 69 6c 65 2e 20 45 6d 70 | 74 79 20 6d 65 61 6e 73 |ile. Emp|ty means|
|00004f80| 20 69 6e 20 73 61 6d 65 | 20 64 69 72 65 63 74 6f | in same| directo|
|00004f90| 72 79 20 61 73 0a 58 09 | 74 68 65 20 65 64 69 74 |ry as.X.|the edit|
|00004fa0| 65 64 20 66 69 6c 65 2e | 20 49 66 20 74 68 65 20 |ed file.| If the |
|00004fb0| 64 69 72 65 63 74 6f 72 | 79 20 6e 61 6d 65 20 73 |director|y name s|
|00004fc0| 74 61 72 74 73 20 77 69 | 74 68 20 3c 3e 3e 2c 20 |tarts wi|th <>>, |
|00004fd0| 6f 6e 6c 79 20 74 68 65 | 0a 58 09 73 70 65 63 69 |only the|.X.speci|
|00004fe0| 66 69 65 64 20 64 69 72 | 65 63 74 6f 72 79 20 77 |fied dir|ectory w|
|00004ff0| 69 6c 6c 20 62 65 20 75 | 73 65 64 2e 20 49 66 20 |ill be u|sed. If |
|00005000| 74 68 65 72 65 20 69 73 | 20 61 20 64 69 72 65 63 |there is| a direc|
|00005010| 74 6f 72 79 20 6e 61 6d | 65 20 62 75 74 0a 58 09 |tory nam|e but.X.|
|00005020| 69 74 20 64 6f 65 73 20 | 6e 6f 74 20 73 74 61 72 |it does |not star|
|00005030| 74 20 77 69 74 68 20 3c | 3e 3e 2c 20 74 68 65 20 |t with <|>>, the |
|00005040| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|00005050| 79 20 69 73 20 74 72 69 | 65 64 20 66 69 72 73 74 |y is tri|ed first|
|00005060| 2e 0a 58 09 54 68 65 20 | 73 70 65 63 69 66 69 65 |..X.The |specifie|
|00005070| 64 20 64 69 72 65 63 74 | 6f 72 79 20 69 73 20 75 |d direct|ory is u|
|00005080| 73 65 64 20 6f 6e 6c 79 | 20 69 66 20 74 68 61 74 |sed only| if that|
|00005090| 20 66 61 69 6c 73 2e 20 | 54 68 65 20 6e 61 6d 65 | fails. |The name|
|000050a0| 20 6d 61 79 20 65 6e 64 | 0a 58 09 69 6e 20 61 6e | may end|.X.in an|
|000050b0| 20 3c 3a 3e 20 6f 72 20 | 3c 2f 3e 2e 20 45 6e 76 | <:> or |</>. Env|
|000050c0| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|000050d0| 65 73 20 61 72 65 20 65 | 78 70 61 6e 64 65 64 2e |es are e|xpanded.|
|000050e0| 20 7b 6e 6f 74 20 69 6e | 20 56 69 7d 0a 58 0a 58 | {not in| Vi}.X.X|
|000050f0| 62 69 6e 61 72 79 20 28 | 62 69 6e 29 09 09 74 6f |binary (|bin)..to|
|00005100| 67 67 6c 65 09 28 64 65 | 66 61 75 6c 74 20 6f 66 |ggle.(de|fault of|
|00005110| 66 29 0a 58 09 54 68 69 | 73 20 6f 70 74 69 6f 6e |f).X.Thi|s option|
|00005120| 20 73 68 6f 75 6c 64 20 | 62 65 20 73 65 74 20 62 | should |be set b|
|00005130| 65 66 6f 72 65 20 65 64 | 69 74 69 6e 67 20 61 20 |efore ed|iting a |
|00005140| 62 69 6e 61 72 79 20 66 | 69 6c 65 2e 20 59 6f 75 |binary f|ile. You|
|00005150| 20 63 61 6e 20 61 6c 73 | 6f 0a 58 09 75 73 65 20 | can als|o.X.use |
|00005160| 74 68 65 20 22 2d 62 22 | 20 63 6f 6d 6d 61 6e 64 |the "-b"| command|
|00005170| 20 6c 69 6e 65 20 6f 70 | 74 69 6f 6e 2e 20 57 68 | line op|tion. Wh|
|00005180| 65 6e 20 74 68 69 73 20 | 6f 70 74 69 6f 6e 20 69 |en this |option i|
|00005190| 73 20 73 65 74 20 74 68 | 65 0a 58 09 27 74 65 78 |s set th|e.X.'tex|
|000051a0| 74 77 69 64 74 68 27 20 | 6f 70 74 69 6f 6e 20 77 |twidth' |option w|
|000051b0| 69 6c 6c 20 73 65 74 20 | 74 6f 20 30 2c 20 74 68 |ill set |to 0, th|
|000051c0| 65 20 27 74 65 78 74 6d | 6f 64 65 27 20 61 6e 64 |e 'textm|ode' and|
|000051d0| 20 27 74 65 78 74 61 75 | 74 6f 27 0a 58 09 6f 70 | 'textau|to'.X.op|
|000051e0| 74 69 6f 6e 73 20 77 69 | 6c 6c 20 62 65 20 72 65 |tions wi|ll be re|
|000051f0| 73 65 74 20 61 6e 64 20 | 27 6d 6f 64 65 6c 69 6e |set and |'modelin|
|00005200| 65 73 27 20 77 69 6c 6c | 20 62 65 20 73 65 74 20 |es' will| be set |
|00005210| 74 6f 20 30 2e 20 57 68 | 65 6e 20 77 72 69 74 69 |to 0. Wh|en writi|
|00005220| 6e 67 0a 58 09 61 20 66 | 69 6c 65 20 74 68 65 20 |ng.X.a f|ile the |
|00005230| 65 6e 64 2d 6f 66 2d 6c | 69 6e 65 20 66 6f 72 20 |end-of-l|ine for |
|00005240| 74 68 65 20 6c 61 73 74 | 20 6c 69 6e 65 20 69 73 |the last| line is|
|00005250| 20 6f 6e 6c 79 20 77 72 | 69 74 74 65 6e 20 69 66 | only wr|itten if|
|00005260| 20 74 68 65 72 65 0a 58 | 09 77 61 73 20 6f 6e 65 | there.X|.was one|
|00005270| 20 69 6e 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c | in the |original|
|00005280| 20 66 69 6c 65 20 28 6e | 6f 72 6d 61 6c 6c 79 20 | file (n|ormally |
|00005290| 56 69 6d 20 61 70 70 65 | 6e 64 73 20 61 6e 20 65 |Vim appe|nds an e|
|000052a0| 6e 64 2d 6f 66 2d 6c 69 | 6e 65 20 74 6f 0a 58 09 |nd-of-li|ne to.X.|
|000052b0| 74 68 65 20 6c 61 73 74 | 20 6c 69 6e 65 20 69 66 |the last| line if|
|000052c0| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 6e 65 3b 20 | there i|s none; |
|000052d0| 74 68 69 73 20 77 6f 75 | 6c 64 20 6d 61 6b 65 20 |this wou|ld make |
|000052e0| 74 68 65 20 66 69 6c 65 | 20 6c 6f 6e 67 65 72 29 |the file| longer)|
|000052f0| 2e 20 53 65 65 0a 58 09 | 74 68 65 20 27 65 6e 64 |. See.X.|the 'end|
|00005300| 6f 66 6c 69 6e 65 27 20 | 6f 70 74 69 6f 6e 2e 20 |ofline' |option. |
|00005310| 7b 6e 6f 74 20 69 6e 20 | 56 69 7d 0a 58 0a 58 62 |{not in |Vi}.X.Xb|
|00005320| 69 6f 73 6b 65 79 20 28 | 62 6b 29 09 09 74 6f 67 |ioskey (|bk)..tog|
|00005330| 67 6c 65 09 28 64 65 66 | 61 75 6c 74 20 6f 6e 29 |gle.(def|ault on)|
|00005340| 0a 58 09 46 6f 72 20 4d | 53 44 4f 53 20 6f 6e 6c |.X.For M|SDOS onl|
|00005350| 79 3a 20 57 68 65 6e 20 | 73 65 74 20 74 68 65 20 |y: When |set the |
|00005360| 62 69 6f 73 20 69 73 20 | 63 61 6c 6c 65 64 20 74 |bios is |called t|
|00005370| 6f 20 6f 62 74 61 69 6e | 20 61 20 6b 65 79 62 6f |o obtain| a keybo|
|00005380| 61 72 64 0a 58 09 63 68 | 61 72 61 63 74 65 72 2e |ard.X.ch|aracter.|
|00005390| 20 54 68 69 73 20 77 6f | 72 6b 73 20 62 65 74 74 | This wo|rks bett|
|000053a0| 65 72 20 74 6f 20 64 65 | 74 65 63 74 20 43 54 52 |er to de|tect CTR|
|000053b0| 4c 2d 43 2c 20 62 75 74 | 20 6f 6e 6c 79 20 77 6f |L-C, but| only wo|
|000053c0| 72 6b 73 20 66 6f 72 0a | 58 09 74 68 65 20 63 6f |rks for.|X.the co|
|000053d0| 6e 73 6f 6c 65 2e 20 57 | 68 65 6e 20 75 73 69 6e |nsole. W|hen usin|
|000053e0| 67 20 61 20 74 65 72 6d | 69 6e 61 6c 20 6f 76 65 |g a term|inal ove|
|000053f0| 72 20 61 20 73 65 72 69 | 61 6c 20 70 6f 72 74 20 |r a seri|al port |
|00005400| 72 65 73 65 74 20 74 68 | 69 73 0a 58 09 6f 70 74 |reset th|is.X.opt|
|00005410| 69 6f 6e 2e 20 7b 6e 6f | 74 20 69 6e 20 56 69 7d |ion. {no|t in Vi}|
|00005420| 0a 58 0a 58 63 6d 64 68 | 65 69 67 68 74 20 28 63 |.X.Xcmdh|eight (c|
|00005430| 68 29 09 09 6e 75 6d 62 | 65 72 09 28 64 65 66 61 |h)..numb|er.(defa|
|00005440| 75 6c 74 20 31 29 0a 58 | 09 4e 75 6d 62 65 72 20 |ult 1).X|.Number |
|00005450| 6f 66 20 6c 69 6e 65 73 | 20 74 6f 20 75 73 65 20 |of lines| to use |
|00005460| 66 6f 72 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |for the |command |
|00005470| 6c 69 6e 65 2e 20 49 66 | 20 79 6f 75 20 61 72 65 |line. If| you are|
|00005480| 20 61 6e 6e 6f 79 65 64 | 20 62 79 0a 58 09 22 68 | annoyed| by.X."h|
|00005490| 69 74 20 72 65 74 75 72 | 6e 20 74 6f 20 63 6f 6e |it retur|n to con|
|000054a0| 74 69 6e 75 65 22 20 6f | 72 20 22 2d 2d 6d 6f 72 |tinue" o|r "--mor|
|000054b0| 65 2d 2d 22 20 63 61 75 | 73 65 64 20 62 79 20 6c |e--" cau|sed by l|
|000054c0| 6f 6e 67 20 6d 65 73 73 | 61 67 65 73 2c 20 73 65 |ong mess|ages, se|
|000054d0| 74 0a 58 09 74 68 69 73 | 20 6f 70 74 69 6f 6e 20 |t.X.this| option |
|000054e0| 74 6f 20 61 20 6c 61 72 | 67 65 72 20 76 61 6c 75 |to a lar|ger valu|
|000054f0| 65 2e 20 7b 6e 6f 74 20 | 69 6e 20 56 69 7d 0a 58 |e. {not |in Vi}.X|
|00005500| 0a 58 63 6f 6c 75 6d 6e | 73 09 09 09 6e 75 6d 62 |.Xcolumn|s...numb|
|00005510| 65 72 09 28 64 65 66 61 | 75 6c 74 20 38 30 20 6f |er.(defa|ult 80 o|
|00005520| 72 20 74 65 72 6d 69 6e | 61 6c 20 77 69 64 74 68 |r termin|al width|
|00005530| 29 0a 58 09 4e 75 6d 62 | 65 72 20 6f 66 20 63 6f |).X.Numb|er of co|
|00005540| 6c 75 6d 6e 73 20 69 6e | 20 74 68 65 20 64 69 73 |lumns in| the dis|
|00005550| 70 6c 61 79 2e 20 4e 6f | 72 6d 61 6c 6c 79 20 74 |play. No|rmally t|
|00005560| 68 69 73 20 69 73 20 73 | 65 74 20 62 79 20 74 68 |his is s|et by th|
|00005570| 65 20 0a 58 09 74 65 72 | 6d 69 6e 61 6c 20 69 6e |e .X.ter|minal in|
|00005580| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 20 61 6e 64 |itializa|tion and|
|00005590| 20 64 6f 65 73 20 6e 6f | 74 20 68 61 76 65 20 74 | does no|t have t|
|000055a0| 6f 20 62 65 20 73 65 74 | 20 62 79 20 68 61 6e 64 |o be set| by hand|
|000055b0| 2e 20 7b 6e 6f 74 20 69 | 6e 20 0a 58 09 56 69 7d |. {not i|n .X.Vi}|
|000055c0| 0a 58 0a 58 63 6f 6d 70 | 61 74 69 62 6c 65 20 28 |.X.Xcomp|atible (|
|000055d0| 63 70 29 09 09 74 6f 67 | 67 6c 65 09 28 64 65 66 |cp)..tog|gle.(def|
|000055e0| 61 75 6c 74 20 6f 66 66 | 29 0a 58 09 41 74 20 74 |ault off|).X.At t|
|000055f0| 68 65 20 6d 6f 6d 65 6e | 74 20 74 68 69 73 20 6f |he momen|t this o|
|00005600| 70 74 69 6f 6e 20 69 73 | 20 73 65 74 2c 20 73 65 |ption is| set, se|
|00005610| 76 65 72 61 6c 20 6f 74 | 68 65 72 20 6f 70 74 69 |veral ot|her opti|
|00005620| 6f 6e 73 20 77 69 6c 6c | 20 62 65 20 73 65 74 20 |ons will| be set |
|00005630| 0a 58 09 6f 72 20 72 65 | 73 65 74 20 74 6f 20 6d |.X.or re|set to m|
|00005640| 61 6b 65 20 56 69 6d 20 | 76 69 2d 63 6f 6d 70 61 |ake Vim |vi-compa|
|00005650| 74 69 62 6c 65 2e 20 53 | 77 69 74 63 68 69 6e 67 |tible. S|witching|
|00005660| 20 74 68 69 73 20 6f 70 | 74 69 6f 6e 20 6f 66 66 | this op|tion off|
|00005670| 20 68 61 73 20 6e 6f 20 | 0a 58 09 65 66 66 65 63 | has no |.X.effec|
|00005680| 74 2e 20 7b 6e 6f 74 20 | 69 6e 20 56 69 7d 0a 58 |t. {not |in Vi}.X|
|00005690| 0a 58 09 6f 70 74 69 6f | 6e 09 09 6e 65 77 20 76 |.X.optio|n..new v|
|000056a0| 61 6c 75 65 09 65 66 66 | 65 63 74 0a 58 0a 58 09 |alue.eff|ect.X.X.|
|000056b0| 62 61 63 6b 73 70 61 63 | 65 09 30 09 09 6e 6f 72 |backspac|e.0..nor|
|000056c0| 6d 61 6c 20 62 61 63 6b | 73 70 61 63 65 0a 58 09 |mal back|space.X.|
|000056d0| 62 61 63 6b 75 70 09 09 | 6f 66 66 09 09 6e 6f 20 |backup..|off..no |
|000056e0| 62 61 63 6b 75 70 20 66 | 69 6c 65 0a 58 09 64 69 |backup f|ile.X.di|
|000056f0| 67 72 61 70 68 09 09 6f | 66 66 09 09 6e 6f 20 64 |graph..o|ff..no d|
|00005700| 69 67 72 61 70 68 73 0a | 58 09 65 73 63 6b 65 79 |igraphs.|X.esckey|
|00005710| 73 09 09 6f 66 66 09 09 | 6e 6f 20 3c 45 53 43 3e |s..off..|no <ESC>|
|00005720| 2d 6b 65 79 73 20 69 6e | 20 49 6e 73 65 72 74 20 |-keys in| Insert |
|00005730| 6d 6f 64 65 0a 58 09 65 | 78 70 61 6e 64 74 61 62 |mode.X.e|xpandtab|
|00005740| 09 6f 66 66 09 09 74 61 | 62 73 20 6e 6f 74 20 65 |.off..ta|bs not e|
|00005750| 78 70 61 6e 64 65 64 20 | 74 6f 20 73 70 61 63 65 |xpanded |to space|
|00005760| 73 0a 58 09 68 69 73 74 | 6f 72 79 09 09 30 09 09 |s.X.hist|ory..0..|
|00005770| 6e 6f 20 63 6f 6d 6d 61 | 6e 64 6c 69 6e 65 20 68 |no comma|ndline h|
|00005780| 69 73 74 6f 72 79 0a 58 | 09 69 6e 73 65 72 74 6d |istory.X|.insertm|
|00005790| 6f 64 65 09 6f 66 66 09 | 09 64 6f 20 6e 6f 74 20 |ode.off.|.do not |
|000057a0| 73 74 61 72 74 20 69 6e | 20 49 6e 73 65 72 74 20 |start in| Insert |
|000057b0| 6d 6f 64 65 0a 58 09 6a | 6f 69 6e 73 70 61 63 65 |mode.X.j|oinspace|
|000057c0| 73 09 6f 6e 09 09 69 6e | 73 65 72 74 20 32 20 73 |s.on..in|sert 2 s|
|000057d0| 70 61 63 65 73 20 61 66 | 74 65 72 20 70 65 72 69 |paces af|ter peri|
|000057e0| 6f 64 0a 58 09 6d 6f 64 | 65 6c 69 6e 65 73 09 30 |od.X.mod|elines.0|
|000057f0| 09 09 6e 6f 20 6d 6f 64 | 65 6c 69 6e 65 73 0a 58 |..no mod|elines.X|
|00005800| 09 6d 6f 72 65 09 09 6f | 66 66 09 09 6e 6f 20 70 |.more..o|ff..no p|
|00005810| 61 75 73 65 73 20 69 6e | 20 6c 69 73 74 69 6e 67 |auses in| listing|
|00005820| 73 0a 58 09 72 65 76 69 | 6e 73 09 09 6f 66 66 09 |s.X.revi|ns..off.|
|00005830| 09 6e 6f 20 72 65 76 65 | 72 73 65 20 69 6e 73 65 |.no reve|rse inse|
|00005840| 72 74 0a 58 09 72 75 6c | 65 72 09 09 6f 66 66 09 |rt.X.rul|er..off.|
|00005850| 09 6e 6f 20 72 75 6c 65 | 72 0a 58 09 73 63 72 6f |.no rule|r.X.scro|
|00005860| 6c 6c 6a 75 6d 70 09 30 | 09 09 6e 6f 20 6a 75 6d |lljump.0|..no jum|
|00005870| 70 20 73 63 72 6f 6c 6c | 0a 58 09 73 68 69 66 74 |p scroll|.X.shift|
|00005880| 72 6f 75 6e 64 09 6f 66 | 66 09 09 69 6e 64 65 6e |round.of|f..inden|
|00005890| 74 20 6e 6f 74 20 72 6f | 75 6e 64 65 64 20 74 6f |t not ro|unded to|
|000058a0| 20 73 68 69 66 74 77 69 | 64 74 68 0a 58 09 73 68 | shiftwi|dth.X.sh|
|000058b0| 6f 77 63 6d 64 09 09 6f | 66 66 09 09 63 6f 6d 6d |owcmd..o|ff..comm|
|000058c0| 61 6e 64 20 63 68 61 72 | 61 63 74 65 72 73 20 6e |and char|acters n|
|000058d0| 6f 74 20 73 68 6f 77 6e | 0a 58 09 73 68 6f 77 6d |ot shown|.X.showm|
|000058e0| 6f 64 65 09 6f 66 66 09 | 09 63 75 72 72 65 6e 74 |ode.off.|.current|
|000058f0| 20 6d 6f 64 65 20 6e 6f | 74 20 73 68 6f 77 6e 0a | mode no|t shown.|
|00005900| 58 09 73 6d 61 72 74 69 | 6e 64 65 6e 74 09 6f 66 |X.smarti|ndent.of|
|00005910| 66 09 09 6e 6f 20 73 6d | 61 72 74 20 69 6e 64 65 |f..no sm|art inde|
|00005920| 6e 74 61 74 69 6f 6e 0a | 58 09 74 65 78 74 61 75 |ntation.|X.textau|
|00005930| 74 6f 09 6f 66 66 09 09 | 6e 6f 20 61 75 74 6f 6d |to.off..|no autom|
|00005940| 61 74 69 63 20 74 65 78 | 74 6d 6f 64 65 20 64 65 |atic tex|tmode de|
|00005950| 74 65 63 74 69 6f 6e 0a | 58 09 74 65 78 74 77 69 |tection.|X.textwi|
|00005960| 64 74 68 09 30 09 09 6e | 6f 20 61 75 74 6f 6d 61 |dth.0..n|o automa|
|00005970| 74 69 63 20 6c 69 6e 65 | 20 77 72 61 70 0a 58 09 |tic line| wrap.X.|
|00005980| 74 69 6c 64 65 6f 70 09 | 09 6f 66 66 09 09 74 69 |tildeop.|.off..ti|
|00005990| 6c 64 65 20 69 73 20 6e | 6f 74 20 61 6e 20 6f 70 |lde is n|ot an op|
|000059a0| 65 72 61 74 6f 72 0a 58 | 09 74 74 69 6d 65 6f 75 |erator.X|.ttimeou|
|000059b0| 74 09 6f 66 66 09 09 6e | 6f 20 74 65 72 6d 69 6e |t.off..n|o termin|
|000059c0| 61 6c 20 74 69 6d 65 6f | 75 74 0a 58 09 75 6e 64 |al timeo|ut.X.und|
|000059d0| 6f 6c 65 76 65 6c 73 09 | 30 09 09 6e 6f 20 6d 75 |olevels.|0..no mu|
|000059e0| 6c 74 69 6c 65 76 65 6c | 20 75 6e 64 6f 0a 58 09 |ltilevel| undo.X.|
|000059f0| 75 70 64 61 74 65 63 6f | 75 6e 74 09 30 09 09 6e |updateco|unt.0..n|
|00005a00| 6f 20 73 77 61 70 20 66 | 69 6c 65 0a 58 09 77 72 |o swap f|ile.X.wr|
|00005a10| 69 74 65 62 61 63 6b 75 | 70 09 6f 66 66 09 09 6e |itebacku|p.off..n|
|00005a20| 6f 20 62 61 63 6b 75 70 | 20 66 69 6c 65 20 77 72 |o backup| file wr|
|00005a30| 69 74 74 65 6e 0a 58 09 | 79 61 6e 6b 65 6e 64 6f |itten.X.|yankendo|
|00005a40| 66 6c 69 6e 65 09 6f 66 | 66 09 09 64 6f 20 6e 6f |fline.of|f..do no|
|00005a50| 74 20 59 61 6e 6b 20 74 | 6f 20 65 6e 64 20 6f 66 |t Yank t|o end of|
|00005a60| 20 6c 69 6e 65 0a 58 0a | 58 64 69 67 72 61 70 68 | line.X.|Xdigraph|
|00005a70| 20 28 64 67 29 09 09 74 | 6f 67 67 6c 65 09 28 64 | (dg)..t|oggle.(d|
|00005a80| 65 66 61 75 6c 74 20 6f | 66 66 29 0a 58 09 45 6e |efault o|ff).X.En|
|00005a90| 61 62 6c 65 20 74 68 65 | 20 65 6e 74 65 72 69 6e |able the| enterin|
|00005aa0| 67 20 6f 66 20 64 69 67 | 72 61 70 68 73 20 69 6e |g of dig|raphs in|
|00005ab0| 20 49 6e 73 65 72 74 20 | 6d 6f 64 65 20 77 69 74 | Insert |mode wit|
|00005ac0| 68 20 7b 63 68 61 72 31 | 7d 20 3c 42 53 3e 20 0a |h {char1|} <BS> .|
|00005ad0| 58 09 7b 63 68 61 72 32 | 7d 2e 20 4f 6e 6c 79 20 |X.{char2|}. Only |
|00005ae0| 77 6f 72 6b 73 20 69 66 | 20 56 69 6d 20 77 61 73 |works if| Vim was|
|00005af0| 20 63 6f 6d 70 69 6c 65 | 64 20 77 69 74 68 20 64 | compile|d with d|
|00005b00| 69 67 72 61 70 68 73 20 | 65 6e 61 62 6c 65 64 2e |igraphs |enabled.|
|00005b10| 20 7b 6e 6f 74 20 0a 58 | 09 69 6e 20 56 69 7d 0a | {not .X|.in Vi}.|
|00005b20| 58 0a 58 64 69 72 65 63 | 74 6f 72 79 20 28 64 69 |X.Xdirec|tory (di|
|00005b30| 72 29 09 09 73 74 72 69 | 6e 67 09 28 64 65 66 61 |r)..stri|ng.(defa|
|00005b40| 75 6c 74 20 66 6f 72 20 | 41 6d 69 67 61 3a 20 22 |ult for |Amiga: "|
|00005b50| 74 3a 22 2c 20 66 6f 72 | 20 4d 53 44 4f 53 3a 0a |t:", for| MSDOS:.|
|00005b60| 58 09 09 09 09 22 63 3a | 5c 74 6d 70 22 2c 20 66 |X...."c:|\tmp", f|
|00005b70| 6f 72 20 75 6e 69 78 3a | 20 22 2f 74 6d 70 22 29 |or unix:| "/tmp")|
|00005b80| 0a 58 09 44 69 72 65 63 | 74 6f 72 79 20 6e 61 6d |.X.Direc|tory nam|
|00005b90| 65 20 66 6f 72 20 74 68 | 65 20 73 77 61 70 20 66 |e for th|e swap f|
|00005ba0| 69 6c 65 2e 20 45 6d 70 | 74 79 20 6d 65 61 6e 73 |ile. Emp|ty means|
|00005bb0| 20 69 6e 20 73 61 6d 65 | 20 64 69 72 65 63 74 6f | in same| directo|
|00005bc0| 72 79 20 61 73 20 74 68 | 65 0a 58 09 65 64 69 74 |ry as th|e.X.edit|
|00005bd0| 65 64 20 66 69 6c 65 2e | 20 49 66 20 74 68 65 20 |ed file.| If the |
|00005be0| 64 69 72 65 63 74 6f 72 | 79 20 6e 61 6d 65 20 73 |director|y name s|
|00005bf0| 74 61 72 74 73 20 77 69 | 74 68 20 3c 3e 3e 2c 20 |tarts wi|th <>>, |
|00005c00| 6f 6e 6c 79 20 74 68 65 | 0a 58 09 73 70 65 63 69 |only the|.X.speci|
|00005c10| 66 69 65 64 20 64 69 72 | 65 63 74 6f 72 79 20 77 |fied dir|ectory w|
|00005c20| 69 6c 6c 20 62 65 20 75 | 73 65 64 2e 20 49 66 20 |ill be u|sed. If |
|00005c30| 74 68 65 72 65 20 69 73 | 20 61 20 64 69 72 65 63 |there is| a direc|
|00005c40| 74 6f 72 79 20 6e 61 6d | 65 20 62 75 74 0a 58 09 |tory nam|e but.X.|
|00005c50| 69 74 20 64 6f 65 73 20 | 6e 6f 74 20 73 74 61 72 |it does |not star|
|00005c60| 74 20 77 69 74 68 20 3c | 3e 3e 2c 20 74 68 65 20 |t with <|>>, the |
|00005c70| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|00005c80| 79 20 69 73 20 74 72 69 | 65 64 20 66 69 72 73 74 |y is tri|ed first|
|00005c90| 2e 0a 58 09 54 68 65 20 | 73 70 65 63 69 66 69 65 |..X.The |specifie|
|00005ca0| 64 20 64 69 72 65 63 74 | 6f 72 79 20 69 73 20 75 |d direct|ory is u|
|00005cb0| 73 65 64 20 6f 6e 6c 79 | 20 69 66 20 74 68 61 74 |sed only| if that|
|00005cc0| 20 66 61 69 6c 73 2e 20 | 54 68 65 20 6e 61 6d 65 | fails. |The name|
|00005cd0| 20 6d 61 79 20 65 6e 64 | 0a 58 09 69 6e 20 61 6e | may end|.X.in an|
|00005ce0| 20 3c 3a 3e 20 6f 72 20 | 3c 2f 3e 2e 20 45 6e 76 | <:> or |</>. Env|
|00005cf0| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00005d00| 65 73 20 61 72 65 20 65 | 78 70 61 6e 64 65 64 2e |es are e|xpanded.|
|00005d10| 20 43 61 72 65 66 75 6c | 20 77 69 74 68 0a 58 09 | Careful| with.X.|
|00005d20| 3c 5c 3e 20 63 68 61 72 | 61 63 74 65 72 73 2c 20 |<\> char|acters, |
|00005d30| 74 79 70 65 20 74 77 6f | 20 74 6f 20 67 65 74 20 |type two| to get |
|00005d40| 6f 6e 65 20 69 6e 20 74 | 68 65 20 6f 70 74 69 6f |one in t|he optio|
|00005d50| 6e 2c 20 22 3a 73 65 74 | 0a 58 09 64 69 72 3d 63 |n, ":set|.X.dir=c|
|00005d60| 3a 5c 5c 74 6d 70 22 2e | 20 7b 56 69 3a 20 64 69 |:\\tmp".| {Vi: di|
|00005d70| 72 65 63 74 6f 72 79 20 | 74 6f 20 70 75 74 20 74 |rectory |to put t|
|00005d80| 65 6d 70 20 66 69 6c 65 | 20 69 6e 2c 20 64 65 66 |emp file| in, def|
|00005d90| 61 75 6c 74 73 20 74 6f | 0a 58 09 22 2f 74 6d 70 |aults to|.X."/tmp|
|00005da0| 22 7d 0a 58 0a 58 65 64 | 63 6f 6d 70 61 74 69 62 |"}.X.Xed|compatib|
|00005db0| 6c 65 09 09 74 6f 67 67 | 6c 65 09 28 64 65 66 61 |le..togg|le.(defa|
|00005dc0| 75 6c 74 20 6f 66 66 29 | 0a 58 09 4d 61 6b 65 73 |ult off)|.X.Makes|
|00005dd0| 20 74 68 65 20 27 67 27 | 20 61 6e 64 20 27 63 27 | the 'g'| and 'c'|
|00005de0| 20 66 6c 61 67 73 20 6f | 66 20 74 68 65 20 22 3a | flags o|f the ":|
|00005df0| 73 75 62 73 74 69 74 75 | 74 65 22 20 63 6f 6d 6d |substitu|te" comm|
|00005e00| 61 6e 64 20 74 6f 20 62 | 65 0a 58 09 74 6f 67 67 |and to b|e.X.togg|
|00005e10| 6c 65 64 20 65 61 63 68 | 20 74 69 6d 65 20 74 68 |led each| time th|
|00005e20| 65 20 66 6c 61 67 20 69 | 73 20 67 69 76 65 6e 2e |e flag i|s given.|
|00005e30| 20 53 65 65 20 31 31 2e | 33 2e 20 53 65 65 20 61 | See 11.|3. See a|
|00005e40| 6c 73 6f 20 27 67 64 65 | 66 61 75 6c 74 27 0a 58 |lso 'gde|fault'.X|
|00005e50| 09 6f 70 74 69 6f 6e 2e | 0a 58 0a 58 65 6e 64 6f |.option.|.X.Xendo|
|00005e60| 66 6c 69 6e 65 20 28 65 | 6f 6c 29 09 09 74 6f 67 |fline (e|ol)..tog|
|00005e70| 67 6c 65 09 28 64 65 66 | 61 75 6c 74 20 6f 6e 29 |gle.(def|ault on)|
|00005e80| 0a 58 09 57 68 65 6e 20 | 77 72 69 74 69 6e 67 20 |.X.When |writing |
|00005e90| 61 20 66 69 6c 65 20 61 | 6e 64 20 74 68 69 73 20 |a file a|nd this |
|00005ea0| 6f 70 74 69 6f 6e 20 69 | 73 20 6f 66 66 20 61 6e |option i|s off an|
|00005eb0| 64 20 74 68 65 20 27 62 | 69 6e 61 72 79 27 20 6f |d the 'b|inary' o|
|00005ec0| 70 74 69 6f 6e 20 69 73 | 0a 58 09 73 65 74 2c 20 |ption is|.X.set, |
|00005ed0| 6e 6f 20 65 6e 64 20 6f | 66 20 6c 69 6e 65 20 28 |no end o|f line (|
|00005ee0| 6e 65 77 6c 69 6e 65 29 | 20 63 68 61 72 61 63 74 |newline)| charact|
|00005ef0| 65 72 20 77 69 6c 6c 20 | 62 65 20 77 72 69 74 74 |er will |be writt|
|00005f00| 65 6e 20 66 6f 72 20 74 | 68 65 20 6c 61 73 74 0a |en for t|he last.|
|00005f10| 58 09 6c 69 6e 65 20 69 | 6e 20 74 68 65 20 66 69 |X.line i|n the fi|
|00005f20| 6c 65 2e 20 54 68 69 73 | 20 6f 70 74 69 6f 6e 20 |le. This| option |
|00005f30| 69 73 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |is autom|atically|
|00005f40| 20 73 65 74 20 77 68 65 | 6e 20 73 74 61 72 74 69 | set whe|n starti|
|00005f50| 6e 67 20 74 6f 0a 58 09 | 65 64 69 74 20 61 20 6e |ng to.X.|edit a n|
|00005f60| 65 77 20 66 69 6c 65 2c | 20 75 6e 6c 65 73 73 20 |ew file,| unless |
|00005f70| 74 68 65 20 27 62 69 6e | 61 72 79 27 20 6f 70 74 |the 'bin|ary' opt|
|00005f80| 69 6f 6e 73 20 69 73 20 | 73 65 74 20 61 6e 64 20 |ions is |set and |
|00005f90| 74 68 65 20 66 69 6c 65 | 20 64 6f 65 73 0a 58 09 |the file| does.X.|
|00005fa0| 6e 6f 74 20 68 61 76 65 | 20 61 6e 20 65 6e 64 20 |not have| an end |
|00005fb0| 6f 66 20 6c 69 6e 65 20 | 28 6e 65 77 6c 69 6e 65 |of line |(newline|
|00005fc0| 29 20 66 6f 72 20 74 68 | 65 20 6c 61 73 74 20 6c |) for th|e last l|
|00005fd0| 69 6e 65 20 69 6e 20 74 | 68 65 20 66 69 6c 65 2c |ine in t|he file,|
|00005fe0| 20 69 6e 0a 58 09 77 68 | 69 63 68 20 63 61 73 65 | in.X.wh|ich case|
|00005ff0| 20 69 74 20 69 73 20 72 | 65 73 65 74 2e 20 4e 6f | it is r|eset. No|
|00006000| 72 6d 61 6c 6c 79 20 79 | 6f 75 20 64 6f 6e 27 74 |rmally y|ou don't|
|00006010| 20 68 61 76 65 20 74 6f | 20 73 65 74 20 6f 72 20 | have to| set or |
|00006020| 72 65 73 65 74 20 74 68 | 69 73 0a 58 09 6f 70 74 |reset th|is.X.opt|
|00006030| 69 6f 6e 2e 20 57 68 65 | 6e 20 27 62 69 6e 61 72 |ion. Whe|n 'binar|
|00006040| 79 27 20 69 73 20 6e 6f | 74 20 73 65 74 20 74 68 |y' is no|t set th|
|00006050| 65 20 76 61 6c 75 65 20 | 69 73 20 6e 6f 74 20 75 |e value |is not u|
|00006060| 73 65 64 2e 20 57 68 65 | 6e 20 27 62 69 6e 61 72 |sed. Whe|n 'binar|
|00006070| 79 27 0a 58 09 69 73 20 | 73 65 74 20 69 74 20 69 |y'.X.is |set it i|
|00006080| 73 20 75 73 65 64 20 74 | 6f 20 72 65 6d 65 6d 62 |s used t|o rememb|
|00006090| 65 72 20 74 68 65 20 70 | 72 65 73 65 6e 63 65 20 |er the p|resence |
|000060a0| 6f 66 20 61 20 6e 65 77 | 6c 69 6e 65 20 66 6f 72 |of a new|line for|
|000060b0| 20 74 68 65 20 6c 61 73 | 74 0a 58 09 6c 69 6e 65 | the las|t.X.line|
|000060c0| 20 69 6e 20 74 68 65 20 | 66 69 6c 65 2c 20 73 6f | in the |file, so|
|000060d0| 20 74 68 61 74 20 77 68 | 65 6e 20 79 6f 75 20 77 | that wh|en you w|
|000060e0| 72 69 74 65 20 74 68 65 | 20 66 69 6c 65 20 74 68 |rite the| file th|
|000060f0| 65 20 73 69 74 75 61 74 | 69 6f 6e 20 66 72 6f 6d |e situat|ion from|
|00006100| 0a 58 09 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |.X.the o|riginal |
|00006110| 66 69 6c 65 20 63 61 6e | 20 62 65 20 6b 65 70 74 |file can| be kept|
|00006120| 2e 20 42 75 74 20 79 6f | 75 20 63 61 6e 20 63 68 |. But yo|u can ch|
|00006130| 61 6e 67 65 20 69 74 20 | 77 68 65 6e 20 79 6f 75 |ange it |when you|
|00006140| 20 77 61 6e 74 20 74 6f | 2e 0a 58 09 7b 6e 6f 74 | want to|..X.{not|
|00006150| 20 69 6e 20 56 69 7d 0a | 58 0a 58 65 71 75 61 6c | in Vi}.|X.Xequal|
|00006160| 61 6c 77 61 79 73 20 28 | 65 61 29 09 74 6f 67 67 |always (|ea).togg|
|00006170| 6c 65 09 28 64 65 66 61 | 75 6c 74 20 6f 6e 29 0a |le.(defa|ult on).|
|00006180| 58 09 57 68 65 6e 20 73 | 65 74 20 61 6c 6c 20 74 |X.When s|et all t|
|00006190| 68 65 20 77 69 6e 64 6f | 77 73 20 61 72 65 20 61 |he windo|ws are a|
|000061a0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 6d 61 64 |utomatic|ally mad|
|000061b0| 65 20 74 68 65 20 73 61 | 6d 65 20 73 69 7a 65 20 |e the sa|me size |
|000061c0| 61 66 74 65 72 0a 58 09 | 73 70 6c 69 74 74 69 6e |after.X.|splittin|
|000061d0| 67 20 6f 72 20 63 6c 6f | 73 69 6e 67 20 61 20 77 |g or clo|sing a w|
|000061e0| 69 6e 64 6f 77 2e 20 49 | 66 20 79 6f 75 20 64 6f |indow. I|f you do|
|000061f0| 6e 27 74 20 73 65 74 20 | 74 68 69 73 20 6f 70 74 |n't set |this opt|
|00006200| 69 6f 6e 2c 20 73 70 6c | 69 74 74 69 6e 67 0a 58 |ion, spl|itting.X|
|00006210| 09 61 20 77 69 6e 64 6f | 77 20 77 69 6c 6c 20 72 |.a windo|w will r|
|00006220| 65 64 75 63 65 20 74 68 | 65 20 73 69 7a 65 20 6f |educe th|e size o|
|00006230| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 77 69 |f the cu|rrent wi|
|00006240| 6e 64 6f 77 20 61 6e 64 | 20 6c 65 61 76 65 20 74 |ndow and| leave t|
|00006250| 68 65 0a 58 09 6f 74 68 | 65 72 20 77 69 6e 64 6f |he.X.oth|er windo|
|00006260| 77 73 20 74 68 65 20 73 | 61 6d 65 2e 20 57 68 65 |ws the s|ame. Whe|
|00006270| 6e 20 63 6c 6f 73 69 6e | 67 20 61 20 77 69 6e 64 |n closin|g a wind|
|00006280| 6f 77 20 74 68 65 20 65 | 78 74 72 61 20 6c 69 6e |ow the e|xtra lin|
|00006290| 65 73 20 61 72 65 0a 58 | 09 67 69 76 65 6e 20 74 |es are.X|.given t|
|000062a0| 68 65 20 74 68 65 20 77 | 69 6e 64 6f 77 20 61 62 |he the w|indow ab|
|000062b0| 6f 76 65 20 69 74 2e 20 | 7b 6e 6f 74 20 69 6e 20 |ove it. |{not in |
|000062c0| 56 69 7d 0a 58 0a 58 65 | 71 75 61 6c 70 72 67 20 |Vi}.X.Xe|qualprg |
|000062d0| 28 65 70 29 09 09 73 74 | 72 69 6e 67 09 28 64 65 |(ep)..st|ring.(de|
|000062e0| 66 61 75 6c 74 20 22 69 | 6e 64 65 6e 74 22 29 0a |fault "i|ndent").|
|000062f0| 58 09 45 78 74 65 72 6e | 61 6c 20 70 72 6f 67 72 |X.Extern|al progr|
|00006300| 61 6d 20 74 6f 20 75 73 | 65 20 66 6f 72 20 22 3d |am to us|e for "=|
|00006310| 22 20 63 6f 6d 6d 61 6e | 64 2e 20 45 6e 76 69 72 |" comman|d. Envir|
|00006320| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 73 |onment v|ariables|
|00006330| 20 61 72 65 0a 58 09 65 | 78 70 61 6e 64 65 64 2e | are.X.e|xpanded.|
|00006340| 20 7b 6e 6f 74 20 69 6e | 20 56 69 7d 0a 58 0a 58 | {not in| Vi}.X.X|
|00006350| 65 72 72 6f 72 62 65 6c | 6c 73 20 28 65 62 29 09 |errorbel|ls (eb).|
|00006360| 09 74 6f 67 67 6c 65 09 | 28 64 65 66 61 75 6c 74 |.toggle.|(default|
|00006370| 20 6f 66 66 29 0a 58 09 | 52 69 6e 67 20 74 68 65 | off).X.|Ring the|
|00006380| 20 62 65 6c 6c 20 66 6f | 72 20 65 72 72 6f 72 20 | bell fo|r error |
|00006390| 6d 65 73 73 61 67 65 73 | 2e 20 44 6f 65 73 20 6e |messages|. Does n|
|000063a0| 6f 74 20 77 6f 72 6b 20 | 6f 6e 20 74 68 65 20 41 |ot work |on the A|
|000063b0| 6d 69 67 61 2c 20 79 6f | 75 20 0a 58 09 61 6c 77 |miga, yo|u .X.alw|
|000063c0| 61 79 73 20 67 65 74 20 | 61 20 73 63 72 65 65 6e |ays get |a screen|
|000063d0| 20 66 6c 61 73 68 2e 0a | 58 0a 58 65 72 72 6f 72 | flash..|X.Xerror|
|000063e0| 66 69 6c 65 20 28 65 66 | 29 09 09 73 74 72 69 6e |file (ef|)..strin|
|000063f0| 67 09 28 64 65 66 61 75 | 6c 74 20 22 41 7a 74 65 |g.(defau|lt "Azte|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.