diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-10-29 00:14:43 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-10-29 02:01:52 -0400 |
commit | 88be99a05bc0143f62ef471ac2f6a5bd68d2f70c (patch) | |
tree | 294be4f3eece13ef7f7032af7e1b49789d9cb7c5 /vim/ftplugin/python.vim | |
parent | 5b650317822743efb0185ccee8c77f982a28b3e7 (diff) | |
download | conf-88be99a05bc0143f62ef471ac2f6a5bd68d2f70c.tar.gz conf-88be99a05bc0143f62ef471ac2f6a5bd68d2f70c.zip |
clean up the help overrides stuff a bit
Diffstat (limited to 'vim/ftplugin/python.vim')
-rw-r--r-- | vim/ftplugin/python.vim | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim index 6973956..b317797 100644 --- a/vim/ftplugin/python.vim +++ b/vim/ftplugin/python.vim @@ -1,9 +1,13 @@ " look up words in pydoc rather than man for K function! s:pydoc(word) - let l:pydoc_pager = $MANPAGER + let l:pydoc_manpager = $MANPAGER + let l:pydoc_pager = $PAGER let $MANPAGER = 'cat' + let $PAGER = 'cat' exe 'silent read! pydoc "' . a:word . '" 2>/dev/null' - let $MANPAGER = l:pydoc_pager + let $MANPAGER = l:pydoc_manpager + let $PAGER = l:pydoc_pager + setlocal ft=man endfunction -nnoremap <buffer> <silent>K :call Help(0, [':'], '<SID>pydoc')<CR> -vnoremap <buffer> <silent>K :call Help(1, [':'], '<SID>pydoc')<CR> +nnoremap <buffer> <silent>K :call Help(0, ['.'], '<SID>pydoc')<CR> +vnoremap <buffer> <silent>K :call Help(1, ['.'], '<SID>pydoc')<CR> |