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 !!
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 .
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With