tl;dr - Learn
vimand use vim plugins wherever possible.
Have you ever been annoyed by switching back and forth between keyboard and mouse (or whatever you use) while working on your machine. Are you scared by taking your hands off your keyboard. Wasting precious seconds! Especially as a developer.
That's the case at least for me. That's why I started my mission to a keyboard only workflow. Remember the hackers in the Hollywood movies? Ever seen them using a mouse or similar? Probably not, just fancy shortcuts and console commands.
This article is mainly about the interaction on MacOs, but replacements exists for all the mentioned plugins/tools for Linux and Windows too.
vim commands are the basis for shortcuts in editors, browsers ore terminal applications.
For most of the modern browsers extensions or plugins exist to enable a vim-like navigation in websites and browser tabs.
Use vim shortcuts in Safari via sVim extension and scroll up and down with
k, open tabs with
t and close with 'x'. If you press
f a highlighted unique character appears on every link on the page, just press the character next to 'click' on that link.
Quicksilver, or the paid version of Alfred, are useful tools to navigate your computer with the keyboard only. While being similar to Spotlight they provide more functionality on top.
One major feature is to create Triggers with QuickSilver which enables system wide shortcuts to switch to application windows directly. No need for crazy
Alt-Tab) cycles. I have a shortcuts for all major app like browsers, IDE's or terminals.
E.g. switching to WebStorm is just hitting
Option-Cmd-W, Chrome sits next to it on
Option-Cmd-E. (Note: I have the
Caps Lock Key remapped to
Options because I never use it. Hence the former shortcuts become
Caps Lock-Cmd-<character>. )
Spectacle is another useful tool for window management. It provides system wide shortcuts to move/resize/arrange the windows with just one trigger. E.g. press
Options-Cmd-Left to move the active window to the left half of the screen. You can also move windows between physical screens easily.
Being a developer I spent most of my time in IDE's and editors. vim extensions exist probably for all of them. This post is written in WebStorm with Markdown and vim plugin. Improves writing speed a lot. No need to even use arrow keys to move around in files. I haven't figured out if such extensions exist for classical text editors like Word, but I never use those so I don't care.
Post last updated: September 26, 2018