typo? seems like variable scope is needed when referencing the variable
author |
Lauri Heiskanen <lauri.heiskanen@nimble.fi> |
date |
Sat, 07 Jan 2012 15:21:23 +0200 |
parents |
ff713b4d6c53
|
children |
0f37d5cc8d29
|
branches/tags |
(none) |
files |
chapters/20.markdown |
Changes
--- 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.