RSI Prevention in Sublime Text
I have recently spent some time updating my dotfiles repo and have taken a lot of inspiration from some of the repositories listed by github.
I especially liked Yan Pritzker's dotfiles, and his key bindings for vim.
Particularly useful is the remapping of _
and -
to ⌘+k
and ⌘+K
respectively. I wanted to recreate this in sublime text and which is pretty easy:
If you are on OS X hit Sublime Text > Preferences > Key Bindings - User
To this file add the following lines (your hands will thank you)
{
"keys": ["super+k"],
"command": "insert",
"args": { "characters": "_"}
},
{
"keys": ["super+shift+k"],
"command": "insert",
"args": { "characters": "-"}
}
Key bindings are pretty easy + powerful to create in ST, check out the list of commands that you can use in conjunction with the key bindings file.
Written by Peter Mitchell
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sublime text
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#