mapping function keys in vim

Your problem is that vim does not know what does terminal emit when you press <F2>. On some terminals it emits something like <Esc>[12~, so the vim quits current mode (or just beeps if it can’t) (<ESC>), does nothing ([1: there must be some key after [, but not 1, so it does nothing) and … Read more

How to avoid constant switching to and from English keyboard layout to type Vim commands when writing in non-Latin language (e.g., Greek)?

This problem can be solved with the help of the keymap option. It allows to define an alternate keyboard mapping to use in modes requiring text input. To switch between the default and alternate keymaps while in Insert, Replace, or Command-line mode (but not Normal mode), use Ctrl+^ (Ctrl+6). Changing the keymap affects text input … Read more

Move file from one editor window to another (split mode)

Goto File->Settings Then Keymap Type in the searchbox “Move To Opposite Group” Assign a shortcut Also useful is “Goto Next Splitter” which allows you to switch between your Splitter. But you’ll hardly find a shortcut which is not already occupied. I used Ctrl + NumPad+ for “Move To Opposite Group” and Ctrl + ArrowRight for … Read more

Programmer’s VIM setup for Finnish/Swedish or other non-US keyboard layout

I just keep the keyboard with US layout when coding and only switch to local layout (italian) when writing text that requires accented letters or other language specific characters. After all it’s just a keypress to switch and nothing beats US layout for programming. I tried a bit but found that specifying lots of mappings … Read more

Import IntelliJ key bindings to Xcode

I just created a repository with part of IntelliJ bindings migrated to an xCode template(including the custom duplicate line). Feel free to give it a look, try it and keep improving it. Sadly the only way we can achieve this is doing it manually. https://github.com/FrangSierra/Xcode-IntelliJ-Keybinds There is also another repository with the color theme of … Read more

tech