Skip to content

Commit

Permalink
Merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjl committed Jun 16, 2012
2 parents 7ea40ff + 33f18f2 commit 5a7b939
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chapters/49.markdown
Expand Up @@ -78,17 +78,17 @@ Play around with the folds for a minute to see how they behave.
Now run the following command to view the foldlevel of line 1:

:::vim
:echom foldmethod(1)
:echom foldlevel(1)

Vim will display `0`. Now let's find the foldlevel of line 2:

:::vim
:echom foldmethod(2)
:echom foldlevel(2)

Vim will display `1`. Let's try line 3:

:::vim
:echom foldmethod(3)
:echom foldlevel(3)

Once again Vim displays `1`. This means that lines 2 and 3 are part of a level
1 fold.
Expand Down Expand Up @@ -330,7 +330,7 @@ Let's write a helper function to get the number of the next non-blank line after
a given line. Add the following function above `IndentLevel`:

:::vim
function! s:NextNonBlankLine(lnum)
function! NextNonBlankLine(lnum)
let numlines = line('$')
let current = a:lnum + 1

Expand Down

0 comments on commit 5a7b939

Please sign in to comment.