Mercurial > vim
comparison runtime/doc/usr_28.txt @ 1622:149d8b46404c
updated for version 7.2a
author | vimboss |
---|---|
date | Tue, 24 Jun 2008 22:09:24 +0000 |
parents | c91e60e1c695 |
children | 0b796e045c42 |
comparison
equal
deleted
inserted
replaced
1621:82b5078be2dd | 1622:149d8b46404c |
---|---|
1 *usr_28.txt* For Vim version 7.1. Last change: 2006 Apr 24 | 1 *usr_28.txt* For Vim version 7.2a. Last change: 2008 Jun 14 |
2 | 2 |
3 VIM USER MANUAL - by Bram Moolenaar | 3 VIM USER MANUAL - by Bram Moolenaar |
4 | 4 |
5 Folding | 5 Folding |
6 | 6 |
376 *28.9* Folding unchanged lines | 376 *28.9* Folding unchanged lines |
377 | 377 |
378 This is useful when you set the 'diff' option in the same window. The | 378 This is useful when you set the 'diff' option in the same window. The |
379 |vimdiff| command does this for you. Example: > | 379 |vimdiff| command does this for you. Example: > |
380 | 380 |
381 setlocal diff foldmethod=diff scrollbind nowrap foldlevel=1 | 381 :setlocal diff foldmethod=diff scrollbind nowrap foldlevel=1 |
382 | 382 |
383 Do this in every window that shows a different version of the same file. You | 383 Do this in every window that shows a different version of the same file. You |
384 will clearly see the differences between the files, while the text that didn't | 384 will clearly see the differences between the files, while the text that didn't |
385 change is folded. | 385 change is folded. |
386 | 386 |
387 For more details see |fold-diff|. | 387 For more details see |fold-diff|. |
388 | 388 |
389 ============================================================================== | 389 ============================================================================== |
390 *28.10* Which fold method to use? | 390 *28.10* Which fold method to use? |
391 | 391 |
392 All these possibilities makes you wonder which method you should chose. | 392 All these possibilities make you wonder which method you should chose. |
393 Unfortunately, there is no golden rule. Here are some hints. | 393 Unfortunately, there is no golden rule. Here are some hints. |
394 | 394 |
395 If there is a syntax file with folding for the language you are editing, that | 395 If there is a syntax file with folding for the language you are editing, that |
396 is probably the best choice. If there isn't one, you might try to write it. | 396 is probably the best choice. If there isn't one, you might try to write it. |
397 This requires a good knowledge of search patterns. It's not easy, but when | 397 This requires a good knowledge of search patterns. It's not easy, but when |