Wiki: Fix To Html Mini Buf Conflict


Note: You are viewing an old revision of this page. View the current version.


:TOhtml and minibufexplorer plugin can not be used together. The :TOhtml always ends up being run on the minibuf window.

If you only have a single window open (minibuf is not showing) and you run :TOhtml it will create a new buffer (hence triggering a show of the minibuf window) and run the :TOhtml on the minibufwindow

If you have multiple windows open (minibuf is showing) and you run :TOhtml you get the same behavior.

I think this could by
  • You could put a check in :TOhtml to make sure it is NOT in a minibuf window, and if it is, switch back to the last window

update

This issue is fixed in a better way by patch 6.2.527, which also adds xhtml support.


Tofer fixed it, nifty of him ey? Get it at -> FixToHtmlMiniBuf


Tofer says:

The problem was that 2html.vim was using 'wincmd p' and '<C-W>p' to swap windows. MiniBufExplorer breaks this by visiting the new buffer in a autocommand. Workaround was to modify 2html.vim to use :b to swap buffers instead of changing windows.


Sponsored by: Labrat Technology -- Need Consulting Services? Programming, Maintenance, Security, Database Analysis & Design, Hosting -- we do it all!
Copyright 2005 Robert Melton
Send questions and comments to
Last updated March 10th, 2005