Mercurial > vim
comparison runtime/doc/windows.txt @ 6474:a88d4dc02bf4 v7.4.566
updated for version 7.4.566
Problem: :argdo, :bufdo, :windo and :tabdo don't take a range.
Solution: Support the range. (Marcin Szamotulski)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 07 Jan 2015 16:54:21 +0100 |
parents | 5d89d9b40499 |
children | b0a227941705 |
comparison
equal
deleted
inserted
replaced
6473:259b0f4f6e76 | 6474:a88d4dc02bf4 |
---|---|
696 | 696 |
697 ============================================================================== | 697 ============================================================================== |
698 8. Do a command in all buffers or windows *list-repeat* | 698 8. Do a command in all buffers or windows *list-repeat* |
699 | 699 |
700 *:windo* | 700 *:windo* |
701 :windo {cmd} Execute {cmd} in each window. | 701 :[range]windo {cmd} Execute {cmd} in each window or if [range] is given |
702 It works like doing this: > | 702 only in windows for which the window number lies in |
703 the [range]. It works like doing this: > | |
703 CTRL-W t | 704 CTRL-W t |
704 :{cmd} | 705 :{cmd} |
705 CTRL-W w | 706 CTRL-W w |
706 :{cmd} | 707 :{cmd} |
707 etc. | 708 etc. |
715 {not in Vi} {not available when compiled without the | 716 {not in Vi} {not available when compiled without the |
716 |+listcmds| feature} | 717 |+listcmds| feature} |
717 Also see |:tabdo|, |:argdo| and |:bufdo|. | 718 Also see |:tabdo|, |:argdo| and |:bufdo|. |
718 | 719 |
719 *:bufdo* | 720 *:bufdo* |
720 :bufdo[!] {cmd} Execute {cmd} in each buffer in the buffer list. | 721 :[range]bufdo[!] {cmd} Execute {cmd} in each buffer in the buffer list or if |
721 It works like doing this: > | 722 [range] is given only for buffers for which their |
723 buffer numer is in the [range]. It works like doing | |
724 this: > | |
722 :bfirst | 725 :bfirst |
723 :{cmd} | 726 :{cmd} |
724 :bnext | 727 :bnext |
725 :{cmd} | 728 :{cmd} |
726 etc. | 729 etc. |