Skip to content

Commit

Permalink
Merge pull request ivanov#3 from DerWeh/modifiable
Browse files Browse the repository at this point in the history
Make doc buffer `nomodifiable`.

The line below the line you changed has `nomodifiable` in it and is commented out but I looked through the commit history and it was like that in the initial version so who knows why it's commented out. Seems like a good idea.
  • Loading branch information
wilywampa committed Mar 17, 2017
2 parents ba8d8fe + eb566c8 commit 2fb70d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/python/vim_ipython.py
Expand Up @@ -407,7 +407,7 @@ def get_doc_buffer(level=0, word=None):
b = vim.current.buffer
b[:] = None
b[:] = doc
vim.command('setlocal nomodified bufhidden=wipe')
vim.command('setlocal nomodified bufhidden=wipe nomodifiable readonly nospell')
#vim.command('setlocal previewwindow nomodifiable nomodified ro')
#vim.command('set previewheight=%d'%len(b))# go to previous window
vim.command('resize %d'%len(b))
Expand Down

0 comments on commit 2fb70d2

Please sign in to comment.