Skip to content

Commit 956e3db

Browse files
Nate ZhangNate Zhang
authored andcommitted
Add Python documentation vertical display option
1 parent 9c8468e commit 956e3db

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

autoload/pymode/doc.vim

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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)