comparison runtime/doc/usr_29.txt @ 34:e170173ecb68 current-release

before ack base protocol.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 26 Nov 2008 15:02:10 +0900
parents 76efa0be13f1
children c16898406ff2
comparison
equal deleted inserted replaced
33:7d0d8b831f5a 34:e170173ecb68
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 VIM USER MANUAL - by Bram Moolenaar 3 VIM USER MANUAL - by Bram Moolenaar
4 4
5 Moving through programs 5 Moving through programs
6 6
382 } <-+ | 382 } <-+ |
383 } <-+ 383 } <-+
384 384
385 When writing C++ or Java, the outer {} block is for the class. The next level 385 When writing C++ or Java, the outer {} block is for the class. The next level
386 of {} is for a method. When somewhere inside a class use "[m" to find the 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 Additionally, "[]" moves backward to the end of a function and "]]" moves 389 Additionally, "[]" moves backward to the end of a function and "]]" moves
390 forward to the start of the next function. The end of a function is defined 390 forward to the start of the next function. The end of a function is defined
391 by a "}" in the first column. 391 by a "}" in the first column.
392 392
495 lines that contain "-I" items, like "-I/usr/local/X11". To add this directory 495 lines that contain "-I" items, like "-I/usr/local/X11". To add this directory
496 use: > 496 use: >
497 497
498 :set path+=/usr/local/X11 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 :set path+=/usr/*/include 502 :set path+=/usr/*/include
503 503
504 This would find files in "/usr/local/include" as well as "/usr/X11/include". 504 This would find files in "/usr/local/include" as well as "/usr/X11/include".
505 505
592 592
593 gd 593 gd
594 594
595 This will go back to the start of the current function and find the first 595 This will go back to the start of the current function and find the first
596 occurrence of the word under the cursor. Actually, it searches backwards to 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 597 an empty line above a "{" in the first column. From there it searches forward
598 forward for the identifier. Example (cursor on "idx"): 598 for the identifier. Example (cursor on "idx"):
599 599
600 int find_entry(char *name) 600 int find_entry(char *name)
601 { 601 {
602 +-> int idx; 602 +-> int idx;
603 | 603 |