Skip to content

Commit 799d143

Browse files
dstahlkeivanov
authored andcommitted
set syntax for doc window
1 parent 63d6b72 commit 799d143

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ftplugin/python/ipy.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ def get_doc_buffer(level=0):
196196
#vim.command('pcl')
197197
#vim.command('pedit doc')
198198
#vim.command('normal ') # go to previous window
199+
# "rest" is the syntax of python documentation. Stock vim doesn't have
200+
# a syntax file for rest, but if the user has installed one then this will
201+
# cause the docs to be colorized.
202+
vim.command('setlocal syntax=rest')
199203

200204
def update_subchannel_msgs(debug=False):
201205
msgs = km.sub_channel.get_msgs()

0 commit comments

Comments
 (0)