Skip to content

Commit 3e2b48d

Browse files
committed
Merge pull request python-mode#566 from natezhang93/develop
Add Python documentation vertical display option
2 parents 073dc99 + 956e3db commit 3e2b48d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

autoload/pymode/doc.vim

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ fun! pymode#doc#show(word) "{{{
2929
setlocal nomodifiable
3030
setlocal nomodified
3131
setlocal filetype=rst
32+
if g:pymode_doc_vertical
33+
wincmd L
34+
endif
3235
wincmd p
3336

3437
endfunction "}}}

plugin/pymode.vim

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ call pymode#default("g:pymode_options", 1)
5252
call pymode#default("g:pymode_options_max_line_length", 80)
5353
call pymode#default("g:pymode_options_colorcolumn", 1)
5454

55+
" Enable/disable vertical display of python documentation
56+
call pymode#default("g:pymode_doc_vertical", 0)
57+
5558
" Minimal height of pymode quickfix window
5659
call pymode#default('g:pymode_quickfix_maxheight', 6)
5760

0 commit comments

Comments
 (0)