PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` =============================================================================== = V I M T u t o r - 1.5 = =============================================================================== Vim , . Vim . 25-30 , . . ( "Vimtutor" ). . . , ! , Shift-Lock j 1.1 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1.1: ** , h,j,k,l . ** ^ k Hint: h ' . < h l > l . j j . v 1. . 2. (j) . ---> . 3. , 1.2. : , . . : . hjkl , . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1.2: VIM !! : , !! 1. ( ). 2. : :q! . ---> . : :wq 3. , . : vimtutor : vim tutor ---> 'vim' vim, 'tutor' . 4. , 1 3 . 1.3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1.3: - ** x . ** 1. --->. 2. , . 3. x . 4. 2 4 . ---> The ccow jumpedd ovverr thhe mooon. 5. , 1.4. : , , . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1.4: - ** i . ** 1. --->. 2. , . 3. i . 4. . 2 4 . ---> There is text misng this . ---> There is some text missing from this line. 5. . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 1. hjkl. h () j () k () l () 2. Vim ( %) : vim 3. : :q! . : :wq . 4. : x 5. : i : . 2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2.1: ** dw . ** 1. . 2. --->. 3. . 4. dw . : dw . , . ---> There are a some words fun that don't belong paper in this sentence. 5. 3 4 2.2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2.2: ** d$ . ** 1. . 2. --->. 3. ( . ). 4. d$ . ---> Somebody typed the end of this line twice. end of this line twice. 5. 2.3 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2.3: d : [] d d [] : - (, ' =1). d - . - ( ). : w - , . e - , . $ - . : , . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2.4: '-' ** dd . ** , Vim d . 1. . 2. dd . 3. . 4. 2dd ( --) . 1) Roses are red, 2) Mud is fun, 3) Violets are blue, 4) I have a car, 5) Clocks tell time, 6) Sugar is sweet 7) And so are you. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2.5: ** u , U . ** 1. ---> . 2. x . 3. u . 4. x. 5. U . 6. u U . 7. CTRL-R ( CTRL R) ( ). ---> Fiix the errors oon thhis line and reeplace them witth undo. 8. . 2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 1. : dw 2. : d$ 3. : dd 4. : [] [] : - - , d - , w (), $ ( ), . 5. , : u ( u) , : U ( U) , : CTRL-R ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3.1: ** p . ** 1. . 2. dd Vim. 3. . 4. , p . 5. 2 4 . d) Can you learn too? b) Violets are blue, c) Intelligence is learned, a) Roses are red, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3.2: ** r . ** 1. --->. 2. . 3. r . 4. 2 3 . ---> Whan this lime was tuoed in, someone presswd some wrojg keys! ---> When this line was typed in, someone pressed some wrong keys! 5. 3.2. : , . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3.3: ** , cw . ** 1. --->. 2. u lubw. 3. cw ( , 'ine'.) 4. ( ). 5. 3 4 . ---> This lubw has a few wptfd that mrrf changing usf the change command. ---> This line has a few words that need changing using the change command. cw , . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3.4: c ** . ** 1. . : [] c c [] 2. , w (), $ ( ), . 3. --->. 4. . 5. c$ . ---> The end of this line needs some help to make it like the second. ---> The end of this line needs to be corrected using the c$ command. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 1. , p . ( . 2. , r . 3. . .. cw , c$ . 4. : [] c c [] . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4.1: ** CTRL-g . SHIFT-G . ** : !! 1. Ctrl g . . 3. 2. shift-G . 3. shift-G. Ctrl-g. ( , ). 4. , 1 3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4.2: ** / . ** 1. / . : . 2. 'errroor' . . 3. , n . , Shift-N . 4. , ? / . ---> . "errroor" is not the way to spell error; errroor is an error. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4.3: ** % ), ], } . ** 1. (, [, { --->. 2. % . 3. . 4. % ( ). ---> This ( is a test line with ('s, ['s ] and {'s } in it. )) : ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4.4: ** :s/old/new/g 'new' 'old'. ** 1. --->. 2. :s/thee/the . . 3. :s/thee/the/g . . ---> thee best time to see thee flowers is in thee spring. 4. , :#,#s/old/new/g #,# . :%s/old/new/g . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 1. Ctrl-g . Shift-G . Shift-G . 2. / . ? . n Shift-N . 3. % (,),[,],{, } . 4. new old :s/old/new new 'old' :s/old/new/g # :#,#s/old/new/g :%s/old/new/g 'c' "%s/old/new/gc ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5.1: ** :! . ** 1. : . . 2. ! (). . 3. ls ! . , . :!dir ls . ---> : . ---> : : . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5.2: ** , :w . ** 1. :!dir :!ls . . 2. , TEST. 3. : :w TEST ( TEST ). 4. (vim Tutor) TEST. , :!dir . ---> Vim TEST, tutor . 5. (MS-DOS): :!del TEST ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5.3: ** , :#,# w ** 1. , :!dir :!ls TEST. 2. Ctrl-g . ! 3. Ctrl-g . ! 4. , :#,# w TEST #,# (,) TEST . 5. , :!dir . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5.4: ** , :r ** 1. :!dir TEST . 2. . : 3 5.3. . 3. TEST :r TEST TEST . : . 4. , 5.3, . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 1. :! . (MS-DOS): :!dir - . :!del - . 2. :w Vim . 3. :#,#w # # . 4. :r . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6.1: ** o . ** 1. --->. 2. o () . 3. ---> . ---> After typing o the cursor is placed on the open line in Insert mode. 4. , O, o. . Shift-O ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6.2: ** a . ** 1. ---> $ . 2. a () . ( A ). : i , , , , -, , x, ! 3. . , . ---> This line will allow you to practice ---> This line will allow you to practice appending text to the end of a line. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6.3: ** R . ** 1. --->. 2. ---> ( 'last'). 3. R . ---> To make the first line the same as the last on this page use the keys. ---> To make the first line the same as the second, type R and the new text. 4. , . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6.4: ** - ** 1. 'ignore' : /ignore n. 2. 'ic' (Ignore case) : :set ic 3. 'ignore' : n n 4. 'hlsearch' 'incsearch': :set hls is 5. , /ignore ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 1. o . 2. a . A . 3. R . 4. ":set xxx" "xxx". ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7: ON-LINE ** on-line ** Vim on-line . , : - ( ) - ( ) - :help :q . , ":help". ( ): :help w :help c_