Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ftplugin/python_pydoc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ function! s:ShowPyDoc(name, type)
else
setlocal nomodified
setlocal nomodifiable
noremap <buffer> <silent> <CR> :<C-U>close<CR>
noremap <buffer> <silent> <Esc> :<C-U>close<CR>
endif
endfunction

Expand Down Expand Up @@ -274,3 +276,6 @@ command! -nargs=1 Pydoc :call s:ShowPyDoc('<args>', 1)
command! -nargs=* PydocSearch :call s:ShowPyDoc('<args>', 0)
ca pyd Pydoc
ca pyds PydocSearch