Skip to content

OptimusCrime/ideavim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

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

Text objects

  • if / af: Inner/Outer function body
  • iq / aq: Inside/Outside any quotes
  • ab / ib: Inside/Outside parentheses, curly braces, and square brackets

Source changes

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

source ~/.ideavimrc

Or, via the mapping space 9

Own functions

Toggle WhichKey

Enable/Disable the plugin with the mapping space 8

Toggle relative line numbers

Enable/Disable relative line numbers in the gutter with the mapping space tab

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

Releases

No releases published

Packages

No packages published