Lines Matching refs:to

8 This chapter provides just enough information to edit a file with Vim.  Not
9 well or fast, but you can edit. Take some time to practice with these
49 runs out of file to display, it displays tilde lines. At the bottom of the
57 The gvim command causes the editor to create a new window for editing. If you
84 After typing "turtle" you press the <Enter> key to start a new line. Finally
85 you press the <Esc> key to stop Insert mode and go back to Normal mode. You
99 To be able to see what mode you are in, type this command: >
103 You will notice that when typing the colon Vim moves the cursor to the last
118 If you press <Esc> to go back to Normal mode the last line will be made blank.
125 switches modes. To get back to Normal mode, no matter what mode you are in,
126 press the <Esc> key. Sometimes you have to press it twice. If Vim beeps back
132 After you return to Normal mode, you can move around by using these keys:
148 however, you greatly slow down your editing because to press the arrow
149 keys, you must move your hand from the text keys to the arrow keys.
156 One way to remember these commands is that h is on the left, l is on the
163 The best way to learn these commands is by using them. Use the "i" command to
164 insert some more lines of text. Then use the hjkl keys to move around and
165 insert a word somewhere. Don't forget to press <Esc> to go back to Normal
166 mode. The |vimtutor| is also a nice way to learn by doing.
182 throwback to the old days of the typewriter, when you deleted things by typing
183 xxxx over them.) Move the cursor to the beginning of the first line, for
184 example, and type xxxxxxx (seven x's) to delete "A very ". The result should
214 then move up to fill the gap:
234 Move the cursor to the first line and press "J":
243 action: After using "dd" to delete the first line, "u" brings it back.
244 Another one: Move the cursor to the A in the first line:
248 Now type xxxxxxx to delete "A young". The result is as follows:
252 Type "u" to undo the last delete. That delete removed the g, so the undo
257 The next "u" command restores the next-to-last character deleted:
271 back, you have Vim configured to work Vi compatible. Look here to fix
273 This text assumes you work "The Vim Way". You might prefer to use
274 the good old Vi way, but you will have to watch out for small
280 If you undo too many times, you can press CTRL-R (redo) to reverse the
304 can go to any of the situations you had. More about that in section |32.2|.
309 Vim has a large number of commands to change the text. See |Q_in| and below.
316 That works fine; but what happens if you want to add stuff to the end of the
317 line? For that you need to insert text after the cursor. This is done with
319 For example, to change the line
322 to
325 move the cursor over to the dot at the end of the line. Then type "x" to
331 to append three exclamation points after the e in turtle:
360 Suppose you want to move up nine lines. You can type "kkkkkkkkk" or you can
362 Earlier in this chapter, for instance, you added three exclamation points to
363 the end of a line by typing "a!!!<Esc>". Another way to do this is to use the
364 command "3a!<Esc>". The count of 3 tells the command that follows to triple
365 its effect. Similarly, to delete three characters, use the command "3x". The
366 count always comes before the command it applies to.
376 turning back. You can configure the Vim editor to produce backup
383 better off before you started. Not to worry; Vim has a
388 Don't forget to press <Enter> to finish the command.
392 the editor to quit; and the override command modifier (!).
393 The override command modifier is needed because Vim is reluctant to throw
394 away changes. If you were to just type ":q", Vim would display an error
395 message and refuse to exit:
397 E37: No write since last change (use ! to override) ~
400 I'm doing looks stupid, but I really want to do this."
402 If you want to continue editing with Vim: The ":e!" command reloads the
408 Everything you always wanted to know can be found in the Vim help files.
409 Don't be afraid to ask!
411 If you know what you are looking for, it is usually easier to search for it
415 Also the help has the advantage of belonging to your particular Vim version.
427 the normal Vim commands to move through the help information. Therefore h, j,
429 To get out of the help window, use the same command you use to get out of
434 cursor anywhere between the bars and press CTRL-] (jump to tag), the help
435 system takes you to the indicated subject. (For reasons not discussed here,
436 the Vim terminology for a hyperlink is tag. So CTRL-] jumps to the location
438 After a few jumps, you might want to go back. CTRL-T (pop tag) takes you
439 back to the preceding position. CTRL-O (jump to older position) also works
442 between "*" characters is used by the help system to define a tag (hyperlink
454 To find out how to delete text, use this command: >
462 When you need to get help for a control character command (for example,
463 CTRL-A), you need to spell it with the prefix "CTRL-". >
485 The Vim editor has a number of options that enable you to configure and
486 customize the editor. If you want help for an option, you need to enclose it
501 E37: No write since last change (use ! to override) ~
503 You can use the error ID at the start to find help about it: >
511 Or press Tab to complete: >
513 < More information on how to use the help: >
516 2) Follow the links in bars to related help. You can go from the detailed
517 help to the user documentation, which describes certain commands more from
523 3) Options are enclosed in single apostrophes. To go to the help topic for the
528 < to open the help page which describes all option handling and then search
538 4) Normal mode commands do not have a prefix. To go to the help page for the
545 6) Visual mode commands start with v_. Help for jumping to the other side of
553 8) Ex-commands always start with ":", so to go to the ":s" command help: >
556 9) Commands specifically for debugging start with ">". To go to the help
563 < takes you to the family of CTRL-X commands for insert mode which can be
564 used to auto-complete different things. Note, that certain keys will
576 < talks about the "g<C-A>" command (e.g. you have to press "g" then
578 expects a second key before doing something similar to the commands
581 11) Regexp items always start with /. So to get help for the "\+" quantifier
584 < If you need to know everything about regular expressions, start reading
597 < will take you to the topic describing the "!" (Not) operator for Vim
601 < to find a short description of all functions available. Help topics for
604 < talks about the append Vim script function rather than how to append text
609 < to find out about the |:imap| command. Also use :map-topic
610 to find out about certain subtopics particular for mappings. e.g: >
618 < to find out about the '!' argument for custom commands.
628 17) Use |:helpgrep| to search in all help pages (and also of any installed
629 plugins). See |:helpgrep| for how to use it.
632 < This takes you to the first match. To go to the next one: >
637 < Move around to the match you like and press Enter to jump to that help.
640 friendly way. Start at |usr_toc.txt| to find the table of content (as you
643 < Skim over the contents to find interesting topics. The "Digraphs" and
644 "Entering special characters" items are in chapter 24, so to go to that
647 < Also if you want to access a certain chapter in the help, the chapter
650 < which goes to chapter 10.1 in |usr_10.txt| and talks about recording
657 20) Syntax highlighting is namespaced to :syn-topic. E.g. >
689 < takes you exactly to the description of the swap error message and >
695 < takes you to the |:function| command