Package org.vimplugin

Examples of org.vimplugin.VimConnection.command()


    boolean first = plugin.getVimserver(VimPlugin.DEFAULT_VIMSERVER_ID) == null;
    serverID = tabbed ? plugin.getDefaultVimServer() : plugin.createVimServer();
    plugin.getVimserver(serverID).start(workingDir, filePath, tabbed, first);

    VimConnection vc = plugin.getVimserver(serverID).getVc();
    vc.command(bufferID, "editFile", "\"" + filePath + "\"");

    if (documentListen){
      vc.command(bufferID, "startDocumentListen", "");
    }else{
      vc.command(bufferID, "stopDocumentListen", "");
View Full Code Here


    VimConnection vc = plugin.getVimserver(serverID).getVc();
    vc.command(bufferID, "editFile", "\"" + filePath + "\"");

    if (documentListen){
      vc.command(bufferID, "startDocumentListen", "");
    }else{
      vc.command(bufferID, "stopDocumentListen", "");
    }
    return vc;
  }
View Full Code Here

    vc.command(bufferID, "editFile", "\"" + filePath + "\"");

    if (documentListen){
      vc.command(bufferID, "startDocumentListen", "");
    }else{
      vc.command(bufferID, "stopDocumentListen", "");
    }
    return vc;
  }

  /**
 
View Full Code Here

    //int h = parent.getClientArea().height;
    //int w = parent.getClientArea().width;

    VimConnection vc = plugin.getVimserver(serverID).getVc();
    //vc.command(bufferID, "setLocAndSize", h + " " + w);
    vc.command(bufferID, "editFile", "\"" + filePath + "\"");
    if (documentListen){
      vc.command(bufferID, "startDocumentListen", "");
    }else{
      vc.command(bufferID, "stopDocumentListen", "");
    }
View Full Code Here

    VimConnection vc = plugin.getVimserver(serverID).getVc();
    //vc.command(bufferID, "setLocAndSize", h + " " + w);
    vc.command(bufferID, "editFile", "\"" + filePath + "\"");
    if (documentListen){
      vc.command(bufferID, "startDocumentListen", "");
    }else{
      vc.command(bufferID, "stopDocumentListen", "");
    }
    return vc;
  }
View Full Code Here

    //vc.command(bufferID, "setLocAndSize", h + " " + w);
    vc.command(bufferID, "editFile", "\"" + filePath + "\"");
    if (documentListen){
      vc.command(bufferID, "startDocumentListen", "");
    }else{
      vc.command(bufferID, "stopDocumentListen", "");
    }
    return vc;
  }

  /**
 
View Full Code Here

      logger.error("Unable to get cursor position.", ioe);
    }
    // Brings the corresponding buffer to top
    //conn.command(bufferID, "setDot", offset);
    // Brings the vim editor window to top
    conn.command(bufferID, "raise", "");

    // to fully focus gvim, we need to simulate a mouse click.
    // Should this be optional, via a preference? There is the potential for
    // weirdness here.
    if (embedded && parent.getDisplay().getActiveShell() != null){
View Full Code Here

        }

        if (isDirty()){
          vc.remotesend("<esc>:saveas! " + newFilePath.replace(" ", "\\ ") + "<cr>");
        }else{
          vc.command(bufferID, "editFile", "\"" + newFilePath + "\"");
        }
      }
    }

    super.doSetInput(input);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.