diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-01-07 16:54:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-01-07 16:54:21 +0100 |
commit | a162bc555e74c1a4f1b7b49871e292e05141b054 (patch) | |
tree | f730d991cbbf9293059e4be0a931dd96b0429c45 /runtime | |
parent | 3ffc79a4a82918430940bfaa18f4da058fdbd0ca (diff) | |
download | vim-git-a162bc555e74c1a4f1b7b49871e292e05141b054.tar.gz |
updated for version 7.4.566v7.4.566
Problem: :argdo, :bufdo, :windo and :tabdo don't take a range.
Solution: Support the range. (Marcin Szamotulski)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/editing.txt | 9 | ||||
-rw-r--r-- | runtime/doc/tabpage.txt | 12 | ||||
-rw-r--r-- | runtime/doc/windows.txt | 11 |
3 files changed, 19 insertions, 13 deletions
diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt index 71f2f8c25..4b8e536df 100644 --- a/runtime/doc/editing.txt +++ b/runtime/doc/editing.txt @@ -1,4 +1,4 @@ -*editing.txt* For Vim version 7.4. Last change: 2014 Dec 05 +*editing.txt* For Vim version 7.4. Last change: 2015 Jan 04 VIM REFERENCE MANUAL by Bram Moolenaar @@ -832,8 +832,9 @@ current window. The two windows then share this list, until one of them uses USING THE ARGUMENT LIST *:argdo* -:argdo[!] {cmd} Execute {cmd} for each file in the argument list. - It works like doing this: > +:[range]argdo[!] {cmd} Execute {cmd} for each file in the argument list or + if [range] is specified only for arguments in that + range. It works like doing this: > :rewind :{cmd} :next @@ -1391,7 +1392,7 @@ reveal it to others. The 'viminfo' file is not encrypted. You could do this to edit very secret text: > :set noundofile viminfo= :noswapfile edit secrets.txt -Keep in mind that without a swap file you risk loosing your work in a crash. +Keep in mind that without a swap file you risk losing your work in a crash. WARNING: If you make a typo when entering the key and then write the file and exit, the text will be lost! diff --git a/runtime/doc/tabpage.txt b/runtime/doc/tabpage.txt index 47e1a4b67..2d44fe2ff 100644 --- a/runtime/doc/tabpage.txt +++ b/runtime/doc/tabpage.txt @@ -1,4 +1,4 @@ -*tabpage.txt* For Vim version 7.4. Last change: 2014 Nov 27 +*tabpage.txt* For Vim version 7.4. Last change: 2015 Jan 04 VIM REFERENCE MANUAL by Bram Moolenaar @@ -206,7 +206,7 @@ REORDERING TAB PAGES: :tabmove " move the tab page to the right :.tabmove " as above :+tabmove " as above - :0tabmove " move the tab page to the begining of the tab + :0tabmove " move the tab page to the beginning of the tab " list :$tabmove " move the tab page to the end of the tab list < @@ -224,8 +224,10 @@ clarification what +N means in this context see |[range]|. LOOPING OVER TAB PAGES: *:tabd* *:tabdo* -:tabd[o] {cmd} Execute {cmd} in each tab page. - It works like doing this: > +:[range]tabd[o] {cmd} + Execute {cmd} in each tab page or if [range] is given only in + tab pages which tab page number is in the [range]. It works + like doing this: > :tabfirst :{cmd} :tabnext @@ -271,8 +273,8 @@ window on the same buffer and then edit another buffer. Thus ":tabnew" triggers: WinLeave leave current window TabLeave leave current tab page - TabEnter enter new tab page WinEnter enter window in new tab page + TabEnter enter new tab page BufLeave leave current buffer BufEnter enter new empty buffer diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt index 67925b864..532cca3e5 100644 --- a/runtime/doc/windows.txt +++ b/runtime/doc/windows.txt @@ -698,8 +698,9 @@ can also get to them with the buffer list commands, like ":bnext". 8. Do a command in all buffers or windows *list-repeat* *:windo* -:windo {cmd} Execute {cmd} in each window. - It works like doing this: > +:[range]windo {cmd} Execute {cmd} in each window or if [range] is given + only in windows for which the window number lies in + the [range]. It works like doing this: > CTRL-W t :{cmd} CTRL-W w @@ -717,8 +718,10 @@ can also get to them with the buffer list commands, like ":bnext". Also see |:tabdo|, |:argdo| and |:bufdo|. *:bufdo* -:bufdo[!] {cmd} Execute {cmd} in each buffer in the buffer list. - It works like doing this: > +:[range]bufdo[!] {cmd} Execute {cmd} in each buffer in the buffer list or if + [range] is given only for buffers for which their + buffer numer is in the [range]. It works like doing + this: > :bfirst :{cmd} :bnext |