![]() (If you want to easily switch Vim Mode Plus on and off, you can add a profile in the “Profiles” tab without any modifications. I’ll try to keep this list up-to-date though. Seeing that I keep tweaking my Karabiner setup, there might be even more when you read this. When you click a mouse button (although my MacBook does not support this for the built-in trackpad).you don’t have both hands on your keyboard) ![]() You can add new key remappings very easily if the ones you need are not in the existing key remapping options. In addition to simple key remapping, it has special remapping modes like Emacs-mode, SandS-mode (Space and Shift). When you have fingers on your trackpad and press a key (i.e. Karabiner, previously called KeyRemap4MacBook, is a very powerful keyboard remapper for Mac OS X.When you switch to iTerm, Atom or any of my other pre-defined apps (because those have their own Vim modes).I’ve also added a couple of other interactions that leave NORMAL mode, to avoid confusion when switching apps:.caps lock, esc and control+ [ leave NORMAL mode.O and shift+ O leave normal mode on a new line below and above the current line respectively.shift+ A leaves NORMAL mode at the end of the line.shift+ I leaves NORMAL mode at the beginning of the line.I and A leave NORMAL mode at the cursor.To leave NORMAL mode you can use any of these: Press V again to go back to NORMAL mode or D, Y, C or X to cut, copy, change or delete the selection. Switch to VISUAL mode with V, in which you can select text with the navigation keys.Undo and redo with U and ctrl+ R respectively.Delete 1 character forward and back with X and shift+ X respectively.D D, Y Y and C C cut, copy and change the current line To get a sense of what this looks like on the inside, open the JSON file in the ~/.config/karabiner/assets/complex_modifications folder: One configuration that I liked from there is the one that disables all right-handed keys when holding the right shift key and the left-handed keys with the left shift, forcing you to use the proper shift:Ĭlick the blue “Import” button to go straight to Karabiner:Įt voila, you have your first complex modification set up. The easiest way to do that is through Karabiner’s complex modifications repository. Better to add JSON files in the ~/.config/karabiner/assets/complex_modifications folder instead. Karabiner stores it’s current setup in ~/.config/karabiner/karabiner.json, but edits directly in that file may get overwritten if you change settings from the interface. Importing complex modifications into Karabiner-Elements But that was just the “Simple modifications” tab. Let’s fix that:Īnd to teach you to actually use this instead of the original esc key, disable the latter: You’re probably familiar with the concept of a keyboard’s home row: the row where your fingers will sit when at rest- A through L… But what is caps lock doing there? Who needs it, in this day and age? On the other hand, esc-which you use intensively, especially when working with Vim-is about as far away from the home row as you can get. Let’s start off easy: map caps lock to esc. When you then run /Applications/Karabiner-Elements.app (or just search for “karabiner” in Spotlight or Alfred), you’ll be greeted with an empty slate:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |