Home » Software Development » Using IdeaVim with IntelliJ

About Sebastian Daschner

Sebastian Daschner
Sebastian Daschner is a self-employed Java consultant and trainer. He is the author of the book 'Architecting Modern Java EE Applications'. Sebastian is a Java Champion, Oracle Developer Champion and JavaOne Rockstar.

Using IdeaVim with IntelliJ

I’ve been a VIM user for a few years and I’m also using the IdeaVim plugin in IntelliJ. The following configuration and features helped me a lot.

  • You can configure the same keymappings that you have in your regular VIM in the ~/.ideavimrc file.
  • Setting idearefactormode to keep makes the behavior of refactorings such as renamings more deterministic.
  • In a dialog hitting <Esc> won’t work since it closes the dialog, but if your cursor is caught in selection mode, pressing Ctrl+] works without moving your hands off the home row.
  • The GitHub repository provides helpful guidance on configuration and which features are supported.
  • The ideajoin mode is a nice feature that can “smart-join” strings, control structures, and others.

This is how ideajoin works, when joining with Shift+J:

You can find my .ideavimrc config file in my Dotfiles on GitHub.

Published on Java Code Geeks with permission by Sebastian Daschner, partner at our JCG program. See the original article here: Using IdeaVim with IntelliJ

Opinions expressed by Java Code Geeks contributors are their own.

(0 rating, 0 votes)
You need to be a registered member to rate this.
Start the discussion Views Tweet it!
Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments