DEV Community

unhurried
unhurried

Posted on

1 2

How to Set Up Vim Key Bindings in Atom

I have been using Vim editor since I was a university student. However I start to think that Atom editor which has various plugins is more convenient in many cases.

To migrate from Vim to Atom smoothly, I've researched how to configure Vim key bindings in Atom.

Install Plugins

vim-mode-plus and ex-mode are recommended.

Note: vim-mode and vim-mode-plus-ex-mode are deprecated.

Turn off IME when exit the insert mode with Esc

We need to use several 3rd party applications to change the key bindings because Atom plugins can not turn off IME.

  • Karabiner (for MacOS) or AutoHotKey (for Windows) seem to be popular. (However, these applications cannot reset IME when we enter the insert mode again.)

Configure key bindings for plugins

  • You need to define key bindings in keymap.cson as vim-mode-plus doesn't have a feature to load vimrc files.
  • If you need to issue multiple commands in a key binding, you need to register a custom command in init.coffee.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay