diff --git a/lib/nerdtree/key_map.vim b/lib/nerdtree/key_map.vim index 1ca478d..584da1f 100644 --- a/lib/nerdtree/key_map.vim +++ b/lib/nerdtree/key_map.vim @@ -51,6 +51,7 @@ function! s:KeyMap.bind() else let keymapInvokeString = self.key endif + let keymapInvokeString = escape(keymapInvokeString, '\') let premap = self.key == "" ? " " : " "