Part of pida.utils.vim.vimcom View In Hierarchy
An instance of Vim on a pseudoterminal which can be reliably polled.
This class is used to provide an instance of Vim which can be communicated with using the Vim client/server protocol, in order to retrieve an accurate and current server list, and also which can be polled accurately as to whether it is alive before communicating with it.
This method is much cheaper in resources than running vim --serverlist each time, and much more accurate than using the root window's VimRegistry property, and also more accurate than using GDK methods for assessing whether a window is alive.
Line # | Kind | Name | Docs |
---|---|---|---|
121 | Method | __init__ | Constructor. |
137 | Method | start | Start the Vim instance if it is not already running. |
167 | Method | is_alive | Check if the Vim instance is alive. |
Create a temporary and unique name for use as the servername, and initialise the instance variables.
@param cb: An instance of the main application class. @type cb: pida.main.Application.