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-08-25 10:25:32 +03:00

3.1 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

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

exchange

textobj-entire

highlightedyank

  • Setup:
    • set highlightedyank
    • if you want to optimize highlight duration, assign a time in milliseconds:
      let g:highlightedyank_highlight_duration = "1000"
      A negative number makes the highlight persistent.
      let g:highlightedyank_highlight_duration = "-1"
    • if you want to change background color of highlight you can provide the rgba of the color you want e.g.
      let g:highlightedyank_highlight_color = "rgba(160, 160, 160, 155)"
  • Emulates vim-highlightedyank
  • By KostkaBrukowa