I am using PhpStorm 7.1.2 with IdeaVim plugin.
When in Insert mode, I want to select words using Shift + ArrowKey
. However, this IdeaVim plugin seems to be preventing from doing that. I can only highlight the words in Command mode using v
key.
shift+Home/End/PageDown/PageUp
or shift+ctrl+arrowKeys
all do not work properly.
I tried changing shortcuts (i.e. Select to Right => shift+right) in Keymap setting but did not work.
Is there any way I can achieve this non-vim behavior?
UPDATE 1
There is a ticket opened in their bug tracking system without any fix. So I guess I can't do what I described above.
If you have a binding to enable / disable IdeaVIM, you can get shift-arrow selection by temporarily disabling IdeaVIM, then using shift-arrow selection, then re-enabling IdeaVIM.
The action in the Keymap dialog is called "Vim Emulator", and in the "Default" keymap it is bound to ⌃⌥V; in "Mac OS X 10.5+" keymap it is bound to ⌥⌘V.
You can look up shortcuts for your keymap either in the Preferences => Keymap dialog, or with the Help => Find Action... menu.
(Note: ⌥ is also called "option" or "alt"; ⌘ is the "command" key on a Mac.)
Disable Vim emulator 2 ways:
It appears to not be possible out of the box. However, it is not hard to hack the plugin to remove the hard-coded vim actions for shift + arrow keys, as long as you have ideavim. This has the effect of letting the default behaviours be used.
Steps:
git clone https://github.com/JetBrains/ideavim.git
ideavim/src/com/maddyhome/idea/vim/RegisterActions.java
.:s%/^.*KeyEvent.VK_\(KP_\)\?\(LEFT\|RIGHT\|UP\|DOWN\), KeyEvent.SHIFT_MASK.*$//
.clean compile dist
.ideavim/out/dist/ideavim-xx-dev.zip
create ~/.ideavimrc file with the following lines
I would create a
~/.ideavimrc
with the following linesIt makes my code select text in the same way.