Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.maddyhome.idea.vim
Class VimPlugin  view VimPlugin download VimPlugin.java

java.lang.Object
  extended bycom.maddyhome.idea.vim.VimPlugin

public class VimPlugin
extends java.lang.Object

This plugin attempts to emulate the keybinding and general functionality of Vim and gVim. See the supplied documentation for a complete list of supported and unsupported Vim emulation. The code base contains some debugging output that can be enabled in necessary. This is an application level plugin meaning that all open projects will share a common instance of the plugin. Registers and marks are shared across open projects so you can copy and paste between files of different projects.

Version:
0.1

Nested Class Summary
static class VimPlugin.VimPluginToggleAction
          This class is used to handle the Vim Plugin enabled/disabled toggle.
 
Field Summary
private  com.maddyhome.idea.vim.key.RegisterActions actions
           
private static boolean enabled
           
private static Logger logger
           
private static java.util.HashMap toolWindows
           
private  VimTypedActionHandler vimHandler
           
 
Constructor Summary
VimPlugin()
          Creates the Vim Plugin
 
Method Summary
 void disposeComponent()
          This shuts down the Vim plugin.
 java.lang.String getComponentName()
          Supplies the name of the plugin
static void indicateError()
          Inidicate to the user that an error has occurred.
 void initComponent()
          Initialize the Vim Plugin.
static boolean isEnabled()
          Indicates whether the user has enabled or disabled the plugin
 void readExternal(org.jdom.Element element)
          This is called by the framework to load custom configuration data.
private  void setupListeners()
          This sets up some listeners so we can handle various events that occur
private  void setupToolWindow(ToolWindow win)
           
static void showMessage(java.lang.String msg)
           
static void showMode(java.lang.String msg)
           
 void writeExternal(org.jdom.Element element)
          This is called by the framework to store custom configuration data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vimHandler

private VimTypedActionHandler vimHandler

actions

private com.maddyhome.idea.vim.key.RegisterActions actions

toolWindows

private static java.util.HashMap toolWindows

enabled

private static boolean enabled

logger

private static Logger logger
Constructor Detail

VimPlugin

public VimPlugin()
Creates the Vim Plugin

Method Detail

getComponentName

public java.lang.String getComponentName()
Supplies the name of the plugin


initComponent

public void initComponent()
Initialize the Vim Plugin. This plugs the vim key handler into the editor action mananger.


setupListeners

private void setupListeners()
This sets up some listeners so we can handle various events that occur


setupToolWindow

private void setupToolWindow(ToolWindow win)

disposeComponent

public void disposeComponent()
This shuts down the Vim plugin. All we need to do is reinstall the original key handler


readExternal

public void readExternal(org.jdom.Element element)
                  throws InvalidDataException
This is called by the framework to load custom configuration data. The data is stored in $HOME/.IntelliJIdea/config/options/other.xml though this is handled by the openAPI.


writeExternal

public void writeExternal(org.jdom.Element element)
                   throws WriteExternalException
This is called by the framework to store custom configuration data. The data is stored in $HOME/.IntelliJIdea/config/options/other.xml though this is handled by the openAPI.


isEnabled

public static boolean isEnabled()
Indicates whether the user has enabled or disabled the plugin


indicateError

public static void indicateError()
Inidicate to the user that an error has occurred. Just beep.


showMode

public static void showMode(java.lang.String msg)

showMessage

public static void showMessage(java.lang.String msg)