X Tutup
Skip to content

Commit d2b32a6

Browse files
committed
Set rst to docs.
1 parent 57f0167 commit d2b32a6

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
@@ -8,6 +8,9 @@ fun! pymode#doc#show(word) "{{{
88
else
99
call pymode#tempbuffer_open('__doc__')
1010
PymodePython pymode.get_documentation()
11+
setlocal nomodifiable
12+
setlocal nomodified
13+
setlocal filetype=rst
1114
wincmd p
1215
endif
1316
endfunction "}}}

autoload/pymode/rope.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ fun! pymode#rope#show_doc()
7070
if !empty(l:output)
7171
call pymode#tempbuffer_open('__doc____rope__')
7272
call append(0, l:output)
73+
setlocal nomodifiable
74+
setlocal nomodified
75+
setlocal filetype=rst
7376
wincmd p
7477
end
7578
endfunction

0 commit comments

Comments
 (0)
X Tutup