From 4da4d6e2c1770438232e66b55bc6575e5156005d Mon Sep 17 00:00:00 2001 From: Phillip Wolfram Date: Mon, 10 Feb 2014 12:25:22 -0700 Subject: [PATCH] Changes to make use of "K" command to lookup python documentation more robust. --- autoload/pymode.vim | 3 ++- autoload/pymode/doc.vim | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/autoload/pymode.vim b/autoload/pymode.vim index c518c415..12992fa8 100644 --- a/autoload/pymode.vim +++ b/autoload/pymode.vim @@ -69,7 +69,8 @@ endfunction "}}} " DESC: Open temp buffer. fun! pymode#tempbuffer_open(name) "{{{ pclose - exe "botright 8new " . a:name + " change number to set number of lines for new window + exe "botright 20new " . a:name setlocal buftype=nofile bufhidden=delete noswapfile nowrap previewwindow redraw endfunction "}}} diff --git a/autoload/pymode/doc.vim b/autoload/pymode/doc.vim index 3030dcea..173fe874 100644 --- a/autoload/pymode/doc.vim +++ b/autoload/pymode/doc.vim @@ -28,7 +28,11 @@ fun! pymode#doc#show(word) "{{{ endif call pymode#tempbuffer_open('__doc__') + " need to allow the buffer to be modified so the documentation can be + " written to the buffer + setlocal modifiable PymodePython pymode.get_documentation() + " no need to modify the buffer after the documentation has been written setlocal nomodifiable setlocal nomodified setlocal filetype=rst