How do you open an external Vim editor containing the active Eclipse editor file

前端 未结 3 844
闹比i
闹比i 2020-12-22 20:32

I\'m not looking for an \"Vim Plugin\" for Eclipse. Instead, I\'d just want a keyboard-shortcut to open the current Eclipse file within a new Vim instance.

Is there

3条回答
  •  悲哀的现实
    2020-12-22 20:45

    You can also create a small shell script that simply opens whatever options are passed to it in named vim instance. For example, the shell script I use is simply:

    #!/bin/bash
    
    gvim --servername eclipse --remote-tab-silent "$@"
    

    Then make the script executable and follow the canonical method described by sleepynate, using your script as the external editor.

提交回复
热议问题