Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to "extend" IntelliJ such that I can open the current file in VIM

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 !!

like image 983
ikaushan Avatar asked Oct 27 '10 21:10

ikaushan


People also ask

How do I open a file in vim terminal?

Launching Vim In order to launch Vim, open a terminal, and type the command vim . You can also open a file by specifying a name: vim foo. txt .

How do I open an IntelliJ source file?

In the Project tool window, right-click the Project toolbar and from the context menu select Always Select Opened File. After that IntelliJ IDEA will track the file that is currently opened in the active editor tab and locate it in the Project tool window automatically.

How do I search an entire project in IntelliJ?

Find the search string in a projectFrom the main menu, select Edit | Find | Find in Files Ctrl+Shift+F . In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F . IntelliJ IDEA places the highlighted string into the search field.

How do I get rid of IntelliJ usage?

If necessary, you can disable the automatic highlighting. Press Ctrl+Alt+S to open the IDE settings and select Editor | Code Editing. Clear the Usages of element at caret checkbox in the Highlight on Caret Movement section.


1 Answers

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.

Also, see the answers below with helpful screenshots for Windows or Mac.

like image 112
Synesso Avatar answered Sep 16 '22 13:09

Synesso