mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2024-11-24 05:42:45 +01:00
2.2 KiB
2.2 KiB
Emulated Vim Plugins
IdeaVim extensions emulate plugins of the original Vim. In order to use
IdeaVim extensions, you have to enable them via this command in your ~/.ideavimrc
:
set <extension-name>
Available extensions:
easymotion
- Setup:
- Install IdeaVim-EasyMotion and AceJump plugins.
set easymotion
- Emulates vim-easymotion
- Commands: All commands with the mappings are supported. See the full list of supported commands.
surround
- Setup:
set surround
- Emulates vim-surround
- Commands:
ys
,cs
,ds
,S
multiple-cursors
- Setup:
set multiple-cursors
- Emulates vim-multiple-cursors
- Commands:
<A-n>
,<A-x>
,<A-p>
,g<A-n>
commentary
- Setup:
set commentary
- Emulates commentary.vim
- Commands:
gcc
,gc + motion
,v_gc
ReplaceWithRegister
- Setup:
set ReplaceWithRegister
- Emulates ReplaceWithRegister
- Commands:
gr
,grr
argtextobj
- Setup:
set argtextobj
- By default, only the arguments inside parenthesis are considered. To extend the functionality
to other types of brackets, set
g:argtextobj_pairs
variable to a comma-separated list of colon-separated pairs (same as VIM'smatchpairs
option), likelet g:argtextobj_pairs="(:),{:},<:>"
. The order of pairs matters when handling symbols that can also be operators:func(x << 5, 20) >> 17
. To handle this syntax parenthesis, must come before angle brackets in the list.
- Emulates argtextobj.vim
- Additional text objects:
aa
,ia
textobj-entire
- Setup:
set textobj-entire
- Emulates vim-textobj-entire
- Additional text objects:
ae
,ie