[RFC] vim-patch:7.4.410

Problem:    Fold does not open after search when there is a CmdwinLeave
            autocommand.
Solution:   Restore KeyTyped. (Jacob Niehus)

https://code.google.com/p/vim/source/detail?r=v7-4-410
The variable declaration should be done here (see http://neovim.org/develop/style-guide.xml#Local_Variables).