# HG changeset patch # User Steve Losh # Date 1325355982 18000 # Node ID 62ff153912637e24f7195ae0fe68aad15fc49df4 # Parent 121fb4ea289b813b0f6786d20bcb7bd28c49acf4 Typos and outline. diff -r 121fb4ea289b -r 62ff15391263 chapters/49.markdown --- a/chapters/49.markdown Fri Dec 16 21:39:36 2011 -0500 +++ b/chapters/49.markdown Sat Dec 31 13:26:22 2011 -0500 @@ -587,7 +587,7 @@ "special" foldlevels. It tells Vim that the current line should *open* a fold of the given level. -In this simple example we could have simply returned the number, but we'll see +In this simple example we could have just returned the number, but we'll see why this is important shortly. In this case line "b" will open a fold at level 1, which makes our example look @@ -627,7 +627,7 @@ factorial (i) string print "\n" print. -First, set any blank lines' foldlevels will be set to undefined: +First, any blank lines' foldlevels will be set to undefined: :::text factorial = (n): @@ -754,5 +754,8 @@ the number in our folding function. What would happen if you used `+` instead? Why? +We defined our helper functions as global functions, but that's not a good idea. +Change them to be script-local functions. + Put this book down and go outside for a while to let your brain recover from this chapter. diff -r 121fb4ea289b -r 62ff15391263 outline.org --- a/outline.org Fri Dec 16 21:39:36 2011 -0500 +++ b/outline.org Sat Dec 31 13:26:22 2011 -0500 @@ -48,14 +48,14 @@ ** DONE pathogen ** DONE ftdetect ** DONE syntax -** TODO folding -** TODO autoload +** DONE folding ** TODO compilers *** makeprg *** errorformat +** TODO autoload ** TODO customization -** TODO documentation +** TODO dynamic status lines ** TODO mapping -** TODO dynamic status lines ** TODO customizing maps +** TODO documentation ** TODO distributing