vim

vim shortcuts that i find central

p10q

Tom Harada

Posted on December 22, 2019

vim shortcuts that i find central

This is my first post. I always wanted to write a blog post about the vim key-mappings and general approaches that I use that I've found super useful over the years. I tend to make them work wherever there is vim or vim-emulation (Vimium / Chrome, VSVim / VS Code, IdeaVim / IntelliJ, XVim2 / Xcode, tmux integration, Codepen, etc.).

Till I Die:

ctrl-hjkl -> ctrl-w hjkl with tmux integration
gd -> go to definition (e.g., using ALE; i haven't cleaned this up for all languages)
ctrl-o -> jump back
ctrl-i -> jump forward
. -> repeat command
qa...q -> macros
<format on save (e.g., using prettier, black)>
Enter fullscreen mode Exit fullscreen mode

Til the Sun Dies:

fd -> escape
[In System Preferences, map] caps lock -> control
; -> :
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
p10q
Tom Harada

Posted on December 22, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related