# HG changeset patch # User Steve Losh # Date 1350085340 14400 # Node ID ad477bf7ad4e85d4e2be6a6c28e490368854c14a # Parent d4af696703366471acfbda90e6e40702e2f01939 Introduce nunmap and prevent surprising behavior. Thanks to @sedm0784 on GitHub for pointing it out. diff -r d4af69670336 -r ad477bf7ad4e chapters/05.markdown --- a/chapters/05.markdown Fri Oct 12 19:35:14 2012 -0400 +++ b/chapters/05.markdown Fri Oct 12 19:42:20 2012 -0400 @@ -20,7 +20,12 @@ When you map keys with these commands Vim will take *other* mappings into account. This may sound like a good thing at first but in reality it's pure, -unadulterated evil. Let's talk about why. +unadulterated evil. Let's talk about why, but first remove those mappings by +running the following commands: + + :::vim + :nunmap - + :nunmap \ Recursion --------- @@ -56,7 +61,11 @@ * `dd` is mapped, so perform the mapping. * ... -This mapping can never finish running! +This mapping can never finish running! Go ahead and remove it with the +following command: + + :::vim + :nunmap dd Side Effects ------------ @@ -111,3 +120,5 @@ Convert all the mappings you added to your `~/.vimrc` file in the previous chapters to their nonrecursive counterparts. + +Read `:help unmap`.