sjl / learnvimscriptthehardway

Home Page:http://learnvimscriptthehardway.stevelosh.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Almost Impossible Exercise

maddisoj opened this issue · comments

The exercise in chapter 49 has an impossible exercise.

We defined our helper functions as global functions, but that's not a good idea. >
Change them to be script-local functions.

Upon attempting this exercise I tried to do:

setlocal foldexpr=<SID>GetPotionFold(v:lnum)

Which, as I know now, is not possible as you cannot use <SID> in a mapping.

I realise now that I probably misinterpreted the exercise, but if one person can why not another?