Skip to content

Latest commit

 

History

History
84 lines (55 loc) · 2.23 KB

README.md

File metadata and controls

84 lines (55 loc) · 2.23 KB

IdeaVim

My IdeaVim config.

Install

Clone this repo and symlink ideavimrc to your $HOME directory.

Windows installation

If you have to use Windows, you can symlink using the command example below. Run CMD as Administrator.

mklink C:\Users\your-username\.ideavimrc C:\Users\you-username\path\to\repo\ideavimrc

macOS/Linux installation

ln -s /path/to/repo/ideavimrc ~/.ideavimrc

Stuff to remember

Default commands

  • gd: Goto definition.

See all

Commands I always forget

  • '.: Goto line start of last change in buffer.
  • nG: Goto line n.
  • %: Goto matching pair.
  • gv: Reselect last selection.
  • gr{motion}: Replace with registry
  • ]}: Goto unmatched }
  • gc{motion}: Comment or uncomment
  • af and if: Outer and inner function text objects
  • ys{motion}{char}: Surround motion with char

Source changes

Open up the vim terminal inside IDEA (by typing :), then execute:

source ~/.ideavimrc

Plugins

IdeaVim Plugins

Random plugins

Custom IDEA shortcuts

  • Editor Actions -> Down: Ctrl+j or ^j
  • Editor Actions -> Up: Ctrl+k or ^k

Editor config

  • Color Scheme: Dark
  • Editor Tabs: Tab placement: None

Editor styling

  • Font: Hack
  • Size: 12
  • Line spacing: 1.2