diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-01-06 20:52:26 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-01-06 20:52:26 +0100 |
commit | 8f3f58f2c361f1b7241128d9821f88d8a30aa066 (patch) | |
tree | bd5827eec39ddf8e6a94919a6a541765882f00d4 /runtime/doc/tips.txt | |
parent | 28c37959871b83fd5d1d621f70bce29dc3f21ba4 (diff) | |
download | vim-git-8f3f58f2c361f1b7241128d9821f88d8a30aa066.tar.gz |
Update documentation files.
Diffstat (limited to 'runtime/doc/tips.txt')
-rw-r--r-- | runtime/doc/tips.txt | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/runtime/doc/tips.txt b/runtime/doc/tips.txt index 5f83ec50a..e5ae40e00 100644 --- a/runtime/doc/tips.txt +++ b/runtime/doc/tips.txt @@ -1,4 +1,4 @@ -*tips.txt* For Vim version 7.2. Last change: 2006 Jul 24 +*tips.txt* For Vim version 7.2. Last change: 2009 Nov 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -6,6 +6,10 @@ Tips and ideas for using Vim *tips* +These are just a few that we thought would be helpful for many users. +You can find many more tips on the wiki. The URL can be found on +http://www.vim.org + Don't forget to browse the user manual, it also contains lots of useful tips |usr_toc.txt|. @@ -18,11 +22,12 @@ Correcting common typing mistakes |type-mistakes| Counting words, lines, etc. |count-items| Restoring the cursor position |restore-position| Renaming files |rename-files| +Change a name in multiple files |change-name| Speeding up external commands |speed-up| Useful mappings |useful-mappings| Compressing the help files |gzip-helpfile| -Hex editing |hex-editing| Executing shell commands in a window |shell-window| +Hex editing |hex-editing| Using <> notation in autocommands |autocmd-<>| Highlighting matching parens |match-parens| @@ -246,6 +251,8 @@ Breaking up restoring the position: zt scroll to move this line to the top of the window `s jump to the original position of the cursor +For something more advanced see |winsaveview()| and |winrestview()|. + ============================================================================== Renaming files *rename-files* @@ -266,6 +273,25 @@ and I want to rename *.c *.bla. I'd do it like this: > :q! ============================================================================== +Change a name in multiple files *change-name* + +Example for using a script file to change a name in several files: + + Create a file "subs.vim" containing substitute commands and a :update + command: > + :%s/Jones/Smith/g + :%s/Allen/Peter/g + :update +< + Execute Vim on all files you want to change, and source the script for + each argument: > + + vim *.let + argdo source subs.vim + +See |:argdo|. + +============================================================================== Speeding up external commands *speed-up* In some situations, execution of an external command can be very slow. This |