From 1d7721db3380e634d206d9a300f4d38f2f2d7338 Mon Sep 17 00:00:00 2001 From: Vimal K Date: Mon, 24 Jul 2017 01:06:13 +0530 Subject: [PATCH] close easily with or enter --- ftplugin/python_pydoc.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ftplugin/python_pydoc.vim b/ftplugin/python_pydoc.vim index 3c5b52e..b6125fb 100644 --- a/ftplugin/python_pydoc.vim +++ b/ftplugin/python_pydoc.vim @@ -210,6 +210,8 @@ function! s:ShowPyDoc(name, type) else setlocal nomodified setlocal nomodifiable + noremap :close + noremap :close endif endfunction @@ -274,3 +276,6 @@ command! -nargs=1 Pydoc :call s:ShowPyDoc('', 1) command! -nargs=* PydocSearch :call s:ShowPyDoc('', 0) ca pyd Pydoc ca pyds PydocSearch + + +