Skip to main content
  1. Posts/

Vim Keybindings on Pycharm

·1 min

I’ve started using vim with pycharm via the IdeaVim plugin. I already had some beginner experience with vim in the terminal, but made the switch in pycharm after finding a great resource by Matt Chapman in his guide The ultimate IdeaVim setup.

I started with his template, and made changes as I went along. One of my favourite plugins he uses is which-key, which gives a nice visual at the bottom of the editor on what commands you can input. I made some changes to match the flow I learned on LazyVim, specifically:

<leader>c for anything code related
<leader>cm to access pycharms magic little modal helper
<leader>cf to format code
<leader>co to optimise imports

Using vim bindings has pulled me away from the mouse and made me much quicker to make changs across files. I find my thinking isn’t slowed down by my actions.

I still find it slow to bounce between various files, especially when I’m popping up new tabs frequently to check some reference implementations. I’m sure I’ll either find a vim-specific solution, or find a plugin for jumping quickly between specific files.

Here is my .ideavimrc for anyone who wants a solid starter templace for IdeaVim.