views:

42

answers:

2

Hi,

I use IntelliJ for most of my Java programming, but every once in a while I need to make certain changes which are much easier done in VIM.

Thus, the question:

While I'm editing a file in IntelliJ, it is somehow possible to tell IntelliJ to start VIM with the same file that is currently under cursor.

Thanks !!

A: 

Try out the VIM Plugin, http://plugins.intellij.net/plugin/?id=164

I have experienced some bugs but for the most part it works.

Flash84x
I'm aware of vim plugin. What I want is for IntelliJ to start an external VIM process opened with a file I had under cursor.
ikaushan
+1  A: 

Absolutely!

Go to File | Settings | External Tools and add a new one.

Program and Working Directory fields should be self-explanatory. The parameter field should be $FilePath$. Click the Insert macro button to see more token values that you could use.

You can also bind keyboard shortcuts to the external tools you define.

See the help page on configuring third party tools for more info.

Synesso
Unfortunately this doesn't work. VIM complains that it requires a terminal. I need VIM to open in a separate window, not within IntelliJ 'RUN' window.
ikaushan
What about if the command is to launch your terminal. (e.g. /usr/bin/terminator or /usr/bin/gnome-terminal) and the params are -e 'vim $FilePath$' ?
Synesso
PS I would try it but my work proxy is causing the IntelliJ download to pause at 99.9% :(
Synesso
Ah !! That works beautifully ! Thank you so much !
ikaushan
Great. Thanks for reporting back. :)
Synesso