You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are using JetBrains Intellij as IDE and VIM as editor. These
shortcuts will also supported on Visual Studio Code aka vscode in the
future but this is not current the case at the time of writing.
You have a some basic level of experience with VIM editing, movement and VIM terminology.
Installation
Import Settings
Change directory to ~/dotfiles/scripts and invoke ./pack-settings. This
will create an Intellij settings.jar inside the dotfiles dir. Now go to
Intellij > Import Settings, pick-upsettings.jar and ensure that keymaps are
selected for import and confirm the import.
Choose Right KeyMap
It is not possile to have the same keymap on both Windows/Linux/Mac due to
different modifier keys. These keymappings have been optimized to work in same
finger positions across MacOS and Windows keyboards. For example Cmd in Mac is
usually at the Alt position in Windows keyboards. Hence the keymappings for
windows uses Alt as a replacement for the Cmd key
There are currently two key-maps: TarunsMacOSKeyMap.xml and
TarunsWinLinKeyMap.xml. (NOTE: TarunsWinLinKeyMap.xml is currenly under
development). Depending on your OS, goto to the Intellij preferences and select
the right keymap.
Open Preferences (via Cmd-,.), Navigate to Keymap and select Always show function keys. Please un-install the Karabiner Elements app as it prevents use
of Shift key with Fn keys!! Use System Preferences > Keyboard > Modifier Keys in order to map Esc to Capslock.
Notes
Assume you have ideamvim installed and my dotfiles has been setup via setup/setup.sh
For a given line, all shortcuts are applicable for GUI programs. Terminal
programs due to legacy reasons cannot use Cmd or Alt modifiers effectively.
The (I) suffix means the shortcut is valid only in insert mode.
The (N) suffix means the shortcut is valid only in normal mode.
Traditional vi editing, navigation shortcuts are not covered here. Search
Google for the truckload of VIM resources.