Navigation Menu

Skip to content

Commit

Permalink
make vim-ipython buffer always modifiable
Browse files Browse the repository at this point in the history
this fixes a bug which prevented from modifying the 'vim-ipython' buffer
if it was first invoked from a buffer that was readonly - such as the
vim help buffers.
  • Loading branch information
ivanov committed Nov 11, 2011
1 parent 9655d4b commit c57d9ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ftplugin/python/ipy.vim
Expand Up @@ -205,7 +205,7 @@ def update_subchannel_msgs(debug=False):
"try"
"|silent! wincmd P"
"|catch /^Vim\%((\a\+)\)\=:E441/"
"|silent pedit vim-ipython"
"|silent pedit +set\ ma vim-ipython"
"|silent! wincmd P"
"|endtry")
# if the current window is called 'vim-ipython'
Expand All @@ -215,8 +215,8 @@ def update_subchannel_msgs(debug=False):
else:
# close preview window, it was something other than 'vim-ipython'
vim.command("pcl")
vim.command("silent pedit vim-ipython")
vim.command("normal P") #switch to preview window
vim.command("silent pedit +set\ ma vim-ipython")
vim.command("wincmd P") #switch to preview window
# subchannel window quick quit key 'q'
vim.command('map <buffer> q :q<CR>')
vim.command("set bufhidden=hide buftype=nofile ft=python")
Expand Down

0 comments on commit c57d9ae

Please sign in to comment.