First Chapter
GitBook allows you to organize your book into chapters, each chapter is stored in a separate file like this one.
Strict mapping
Remove mapping :nunmap -
Recursion
Big bug:
:nmap dd Ojddk
Side Effects
be careful about the conflict with some plugin
Nonrecursive Mapping
:nmap x dd :nnoremap x # For stop recurisive
The same noremap brothers noremap nnoremap vnoremap inoremap
Exercises Convert all the mappings you added to your ~/.vimrc file in the previous chapters to their nonrecursive counterparts. Read :help unmap.
Training Your Fingers
#no operation
:inoremap jk :inoremap
Exercises If you still find yourself using the arrow keys to navigate around Vim in normal mode, map them to to make yourself stop.
If you still use the arrow keys in insert mode, map them to there too. The right way to use Vim is to get out of insert mode as soon as you can and use normal mode to move around.
Last updated
Was this helpful?