1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2024-11-24 05:42:45 +01:00
IntelliJ-IdeaVim/doc/emulated-plugins.md
2020-04-17 11:31:17 +03:00

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

surround

  • Setup: set surround
  • Emulates vim-surround
  • Commands: ys, cs, ds, S

multiple-cursors

commentary

  • Setup: set commentary
  • Emulates commentary.vim
  • Commands: gcc, gc + motion, v_gc

ReplaceWithRegister

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's matchpairs option), like let 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