~ubuntu-branches/ubuntu/maverick/vim/maverick

« back to all changes in this revision

Viewing changes to runtime/doc/tips.txt

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-05-04 11:13:42 UTC
  • mfrom: (1.1.8 upstream) (0.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090504111342-60miqybsixdpc345
Tags: 2:7.2.148-2ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/runtime/vimrc: "syntax on" is a sane default for non-tiny vim.
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Disable autoindent, line-wrapping, and backup files by default.
* Dropped changes, merged in Debian:
  - Add jaunty, karmic to the list of valid suites.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - Create a .pot file for translations.
* Drop gutsy from the list of valid distro series, it's been EOLed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
*tips.txt*      For Vim version 7.2.  Last change: 2006 Jul 24
 
1
*tips.txt*      For Vim version 7.2.  Last change: 2009 Feb 18
2
2
 
3
3
 
4
4
                  VIM REFERENCE MANUAL    by Bram Moolenaar
6
6
 
7
7
Tips and ideas for using Vim                            *tips*
8
8
 
 
9
These are just a few that we thought would be helpful for many users.
 
10
You can find many more tips on the wiki.  The URL can be found on
 
11
http://www.vim.org
 
12
 
9
13
Don't forget to browse the user manual, it also contains lots of useful tips
10
14
|usr_toc.txt|.
11
15
 
18
22
Counting words, lines, etc.                     |count-items|
19
23
Restoring the cursor position                   |restore-position|
20
24
Renaming files                                  |rename-files|
 
25
Change a name in multiple files                 |change-name|
21
26
Speeding up external commands                   |speed-up|
22
27
Useful mappings                                 |useful-mappings|
23
28
Compressing the help files                      |gzip-helpfile|
 
29
Executing shell commands in a window            |shell-window|
24
30
Hex editing                                     |hex-editing|
25
 
Executing shell commands in a window            |shell-window|
26
31
Using <> notation in autocommands               |autocmd-<>|
27
32
Highlighting matching parens                    |match-parens|
28
33
 
266
271
        :q!
267
272
 
268
273
==============================================================================
 
274
Change a name in multiple files                         *change-name*
 
275
 
 
276
Example for using a script file to change a name in several files:
 
277
 
 
278
        Create a file "subs.vim" containing substitute commands and a :update
 
279
        command: >
 
280
                :%s/Jones/Smith/g
 
281
                :%s/Allen/Peter/g
 
282
                :update
 
283
<
 
284
        Execute Vim on all files you want to change, and source the script for
 
285
        each argument: >
 
286
 
 
287
                vim *.let
 
288
                argdo source subs.vim
 
289
 
 
290
See |:argdo|.
 
291
 
 
292
==============================================================================
269
293
Speeding up external commands                           *speed-up*
270
294
 
271
295
In some situations, execution of an external command can be very slow.  This