updated for version 7.0066
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
*usr_28.txt* For Vim version 7.0aa. Last change: 2003 Dec 21
|
||||
*usr_28.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -350,7 +350,7 @@ You can try it out on this text:
|
||||
Explanation for the 'foldexpr' used in the example (inside out):
|
||||
getline(v:lnum) gets the current line
|
||||
substitute(...,'\\s','','g') removes all white space from the line
|
||||
substitute(...,'[^>].*','','')) removes everything after leading '>'s
|
||||
substitute(...,'[^>].*','','') removes everything after leading '>'s
|
||||
strlen(...) counts the length of the string, which
|
||||
is the number of '>'s found
|
||||
|
||||
|
||||
Reference in New Issue
Block a user