Mercurial > vim
comparison runtime/doc/usr_40.txt @ 1125:96cd8222a819
updated for version 7.1a
author | vimboss |
---|---|
date | Sat, 05 May 2007 18:24:42 +0000 |
parents | 4bac29d27e2f |
children | 82274b284600 |
comparison
equal
deleted
inserted
replaced
1124:da2a955f150a | 1125:96cd8222a819 |
---|---|
1 *usr_40.txt* For Vim version 7.0. Last change: 2006 Apr 24 | 1 *usr_40.txt* For Vim version 7.1a. Last change: 2006 Jun 21 |
2 | 2 |
3 VIM USER MANUAL - by Bram Moolenaar | 3 VIM USER MANUAL - by Bram Moolenaar |
4 | 4 |
5 Make new commands | 5 Make new commands |
6 | 6 |
603 like "doautocmd" except it executes on all the buffers. | 603 like "doautocmd" except it executes on all the buffers. |
604 | 604 |
605 | 605 |
606 USING NORMAL MODE COMMANDS | 606 USING NORMAL MODE COMMANDS |
607 | 607 |
608 The commands executed by an autocommand are Command-line command. If you want | 608 The commands executed by an autocommand are Command-line commands. If you |
609 to use a Normal mode command, the ":normal" command can be used. Example: > | 609 want to use a Normal mode command, the ":normal" command can be used. |
610 Example: > | |
610 | 611 |
611 :autocmd BufReadPost *.log normal G | 612 :autocmd BufReadPost *.log normal G |
612 | 613 |
613 This will make the cursor jump to the last line of *.log files when you start | 614 This will make the cursor jump to the last line of *.log files when you start |
614 to edit it. | 615 to edit it. |