~ubuntu-branches/ubuntu/vivid/vim/vivid

« back to all changes in this revision

Viewing changes to runtime/doc/usr_29.txt

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-11-05 11:37:43 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081105113743-9i4urcsm3n44mhqe
Tags: 2:7.2.025-2ubuntu1
* Merge from debian unstable, remaining changes:
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/debchangelog.vim:
    + Add "jaunty" to the list of valid suites.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
*usr_29.txt*    For Vim version 7.1.  Last change: 2006 Apr 24
 
1
*usr_29.txt*    For Vim version 7.2.  Last change: 2008 Jun 28
2
2
 
3
3
                     VIM USER MANUAL - by Bram Moolenaar
4
4
 
384
384
 
385
385
When writing C++ or Java, the outer {} block is for the class.  The next level
386
386
of {} is for a method.  When somewhere inside a class use "[m" to find the
387
 
previous start of a method.  "]m" finds the next end of a method.
 
387
previous start of a method.  "]m" finds the next start of a method.
388
388
 
389
389
Additionally, "[]" moves backward to the end of a function and "]]" moves
390
390
forward to the start of the next function.  The end of a function is defined
497
497
 
498
498
        :set path+=/usr/local/X11
499
499
 
500
 
When there are many subdirectories, you an use the "*" wildcard.  Example: >
 
500
When there are many subdirectories, you can use the "*" wildcard.  Example: >
501
501
 
502
502
        :set path+=/usr/*/include
503
503
 
594
594
 
595
595
This will go back to the start of the current function and find the first
596
596
occurrence of the word under the cursor.  Actually, it searches backwards to
597
 
an empty line above the a "{" in the first column.  From there it searches
598
 
forward for the identifier.  Example (cursor on "idx"):
 
597
an empty line above a "{" in the first column.  From there it searches forward
 
598
for the identifier.  Example (cursor on "idx"):
599
599
 
600
600
                int find_entry(char *name)
601
601
                {