Lines Matching refs:with
10 text. The Visual mode allows doing various things with blocks of text. Use
81 you can do it again with "@@". That's a bit easier to type. If you now
82 execute register b with "@b", the next "@@" will use register b.
83 If you compare the playback method with using ".", there are several
95 delete commands. This allows you to mix recording with other commands to
98 this with "@n" you notice you did something wrong. You could try recording
112 Now you can execute the corrected commands with "@n". (If your recorded
123 change. This can be done with: >
127 You start with "qC", which records to the c register and appends. Thus
128 writing to an uppercase register name means to append to the register with
131 This works both with recording and with yank and delete commands. For
133 the first line with: >
153 specified with [range]. For example, you can change "Professor" to "Teacher"
154 in all lines with the following command: >
181 results in (starting with the original line):
195 replace with Teacher (y/n/a/q/l/^E/^Y)?
215 If you are substituting with a "from" or "to" part that includes a slash, you
257 occurrences of "grey" with "gray". But only in this chapter, not in the next
267 To avoid confusion with the slashes, the "=" character was used in the
286 The offsets can also be used with the other items in a range. Look at this
301 to specify the lines between the marks (including the lines with the marks): >
308 You can select text with Visual mode. If you then press ":" to start a colon
324 Visual area started. And you can mix the marks with other items: >
352 matched text with other text, the command {command} is executed.
355 The command executed for ":global" must be one that starts with a
360 comments. These comments start with "//". Use this command: >
364 This starts with ":g". That is short for ":global", just like ":s" is short
376 Just like with ":substitute", any pattern can be used. When you learn more
383 a few commands that do something special with the text block.
387 will extend until the end of the line, also when the line with the cursor is
407 Move the cursor to the "o" of "one" and press CTRL-V. Move it down with "3j"
456 with other movement commands will not have the same result.
464 Starting with the same selection of the "long" words as above, then typing
471 Just like with "I" the short line is not changed. Also, you can't enter a
477 Starting with the same text again, and typing "Cnew text<Esc>" you get:
497 To fill the whole block with one character, use the "r" command. Again,
498 starting with the same example text from above, and then typing "rx":
521 The shift amount is specified with the 'shiftwidth' option. To change it to
537 line ending (that can be changed with the 'joinspaces' option).
538 Let's use the example that we got so familiar with now. The result of
543 The "J" command doesn't require a blockwise selection. It works with "v" and
552 This can be done with the ":read {filename}" command. The text of the file is
554 Starting with this text:
564 The file named "patch" will be inserted, with this result:
578 with the line number zero. This line doesn't really exist, you will get an
579 error message when using it with most commands. But this command is allowed:
610 Write the first line with this command: >
644 This starts with the "gq" command, which is an operator. Following is "ap",
662 Start with the command "gqj". This formats the current line and the one below
671 You have text with section headers in lowercase. You want to make the word
672 "section" all uppercase. Do this with the "gU" operator. Start with the
684 with any motion command, with text objects and in Visual mode.
702 Because this summarizes badly if you are unfamiliar with UNIX filters, take
737 line with the output of "date". This is useful to add a timestamp to a file.
743 knows how the shell works exactly. When you have problems with filtering,
784 difference with using "!!date": that replaced a line, while ":read !date" will
808 This will write the file "wc" in the current directory, with force. White