# HG changeset patch # User Lauri Heiskanen # Date 1325942483 -7200 # Node ID ea7cfb4681d9000ea0e619be3e0486f9f5384105 # Parent ff713b4d6c539ff2828e2998a75a6e724b9d29ae typo? seems like variable scope is needed when referencing the variable diff -r ff713b4d6c53 -r ea7cfb4681d9 chapters/20.markdown --- a/chapters/20.markdown Thu Jan 05 18:41:20 2012 +0200 +++ b/chapters/20.markdown Sat Jan 07 15:21:23 2012 +0200 @@ -10,13 +10,13 @@ :::vim :let b:hello = "world" - :echo hello + :echo b:hello As expected, Vim displays "world". Now switch to the other buffer and run the echo command again: :::vim - :echo hello + :echo b:hello This time Vim throws an error, saying it can't find the variable.