Mercurial > hg > RemoteEditor > vim7
comparison runtime/doc/repeat.txt @ 34:e170173ecb68 current-release
before ack base protocol.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 26 Nov 2008 15:02:10 +0900 |
parents | 76efa0be13f1 |
children | c16898406ff2 |
comparison
equal
deleted
inserted
replaced
33:7d0d8b831f5a | 34:e170173ecb68 |
---|---|
1 *repeat.txt* For Vim version 7.1. Last change: 2007 Jan 07 | 1 *repeat.txt* For Vim version 7.2. Last change: 2007 Aug 12 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
87 :g/pat/s//PAT/g | 87 :g/pat/s//PAT/g |
88 This replaces all occurrences of "pat" with "PAT". The same can be done with: | 88 This replaces all occurrences of "pat" with "PAT". The same can be done with: |
89 :%s/pat/PAT/g | 89 :%s/pat/PAT/g |
90 Which is two characters shorter! | 90 Which is two characters shorter! |
91 | 91 |
92 A special case is using ":visual" as a command. This will move to a matching | 92 When using "global" in Ex mode, a special case is using ":visual" as a |
93 line, go to Normal mode to let you execute commands there until you use |Q| to | 93 command. This will move to a matching line, go to Normal mode to let you |
94 return to Ex mode. This will be repeated for each matching line. While doing | 94 execute commands there until you use |Q| to return to Ex mode. This will be |
95 this you cannot use ":global". | 95 repeated for each matching line. While doing this you cannot use ":global". |
96 To abort this type CTRL-C twice. | |
96 | 97 |
97 ============================================================================== | 98 ============================================================================== |
98 3. Complex repeats *complex-repeat* | 99 3. Complex repeats *complex-repeat* |
99 | 100 |
100 *q* *recording* | 101 *q* *recording* |