Skip to content

Karabiner elements configuration that provides vi like key bindings for macOS.

License

Notifications You must be signed in to change notification settings

tom-power/right-shift-vi-like-karabiner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vi like key bindings for MacOS

Inspired by vi like editor keybindings, these Karabiner elements configurations have more or less saved my life, YMMV!

demo

Mappings

With right shift as modifier unless mentioned..

Movement

From To
h/j/k/l arrow keys
w/b word forward/back
a/e home/end
p/; page up/down

Editing

From To
s/c/v/x/z/t/i send with cmd
m return
f/d delete/backspace
space tab

Other

From To
cmd+space escape
y cmd+w (close tab)
u/o cmd+shift+[/] (switch tab)
g cmd+l (focus address bar)

Extras

Have included some extra mappings I find useful in src/extras, install using --with-extras below, some descriptions:

From To
"+left_shift double quote wrap selection
q+left_shift single quote
q single quote wrap selection
i ./
i+left_shift ../
` ~/

Installation

Install Karabiner elements, then..

clone https://github.com/tom-power/right-shift-vi-like-karabiner.git &&
cd ./right-shift-vi-like-karabiner &&
sh/install.sh [--with-extras]

Alternatively, import the modifications from Karabiner-Elements site rules.

For both methods the rules will need to be loaded in the Karabiner elements UI:

Preferences -> Complex Modifications -> Add rule -> right shift vi like -> Enable all

Suggest to bind capslock to left cmd too:

Preferences -> Simple Modifications -> Add item -> from -> caps_lock -> to -> left_cmd

About

Karabiner elements configuration that provides vi like key bindings for macOS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages