You're encountering this issue because IdeaVim is interpreting the Ctrl+Shift+Right key combination as a command to enter visual mode, which is how Vim normally handles selection outside of insert mode. However, in your case, you want to remain in insert mode and select the word using the key combination (Ctrl+Shift+Right), just like you would in a regular text editor.
Here's what you can do to resolve this:
✅ Solution: Bypass IdeaVim for Specific Key Bindings
IdeaVim may be intercepting the key combination due to a preset mapping or default behavior. You can configure your keymap in WebStorm to prevent IdeaVim from interfering with that shortcut while in insert mode.
Steps:
-
Open WebStorm Settings
Go to:
File > Settings (or Preferences on macOS) > Keymap
-
Search for the action
In the keymap search bar, search for:
Editor: Select Word at Caret
This is typically what Ctrl+Shift+Right maps to in JetBrains IDEs (default behavior for selecting a word to the right).
-
Check for Conflicts
If IdeaVim is overriding it, or if you don’t see the shortcut, you may need to remap or ensure it's not handled by IdeaVim.
-
Whitelist the shortcut from IdeaVim
IdeaVim has a feature where you can ignore certain key mappings so they fall through to WebStorm’s default behavior.
-
Create a .ideavimrc file in your home directory (or modify if it exists):
set keymodel=startsel,stopsel
Add the following line to ignore Ctrl+Shift+Right in IdeaVim (so WebStorm handles it normally):
set clipboard+=unnamedplus
set selectmode=keyboard
And more importantly, add this to prevent IdeaVim from handling the Ctrl+Shift+ keys*:
map <C-S-Right> <Ignore>
Unfortunately, IdeaVim may not fully support <C-S-Right> mappings yet in all versions. So if it doesn't work, a workaround is to configure WebStorm to handle the selection before IdeaVim can react.
✅ Alternative: Use Native Selection in Insert Mode
Since Vim traditionally doesn't support visual selection (like Shift+Arrow) in insert mode, JetBrains IDEs simulate this in 'hybrid' mode. You may get more predictable behavior by doing this:
-
Go to:
Settings > Editor > Vim Emulation
-
Check or set the following:
- Enable "Keep IDE selection when leaving insert mode".
-
Or disable 'Vim visual mode on selection' if available.
✅ Current Limitations
- As of now (IdeaVim 2024.x), Shift+Arrow, Ctrl+Shift+Arrow key combinations are only partially supported in insert mode and may automatically trigger visual mode.
- This happens because IdeaVim tries to stay "faithful" to Vim behavior, and Vim doesn't use those keys in insert mode.
✅ Summary
If you want native text selection with Ctrl+Shift+Right in insert mode:
-
Add this to your .ideavimrc:
map <C-S-Right> <Ignore>
-
Or disable IdeaVim for this shortcut by tweaking your WebStorm keymap settings.
-
If this still doesn't work, consider filing a feature request on the IdeaVim GitHub repo as this is a common usability issue between Vim and IDE-like behavior.
Let me know your platform (Windows/Linux/macOS) and WebStorm version if you'd like a platform-specific workaround (Karabiner for macOS or AutoHotkey for Windows, for instance).