Back to Ideavim

What's New in IdeaVim __VERSION__

src/main/resources/whatsnew-tbr.html

2.42.01.8 KB
Original Source

ideavim — whats-new — 80×24

~ $ ideavim

Here's what landed in __VERSION__.

new plugin · motions

indentwise — move by indentation

The bundled indentwise extension adds motions that navigate by indentation level instead of by line — jump to the next line that's less indented, more indented, or sits at the same depth, or hop straight to the edges of the block you're in.

Plug 'jeetsukumaran/vim-indentwise'[-]-" previous / next line of LESSER indent[+]+" previous / next line of GREATER indent[=]=" previous / next line of EQUAL indent[%]%" start / end of the current indent block

They work as operator motions too — try d]= to delete down to the next line at the same indent.

editing · undo

Undo a whole line at once

The classic U command is now implemented — it undoes every recent change you made to the last-edited line in one stroke. Pressing U again redoes them, so it doubles as a quick before/after toggle.

U" undo all latest changes on the most recently changed lineU" press again to redo them

also worth a look

Mouse, your way

The new 'mouse' option (default nvi) decides which modes a click moves the caret in — a flag per mode (n/v/i/c), a for all, and r to dismiss the more-prompt on click.

NERDTree, out of the way

Set let g:NERDTreeQuitOnOpen = 1 and the project tree closes itself the moment you open a file with o.

polish & fixes

  • Undo replays inside macros — recording dwu (delete a word, then undo) and replaying it with @a now works as recorded.
  • Autocmds run in the right mode — Normal-mode events like BufWritePre no longer fire while you're still in Insert mode; IdeaVim returns to Normal first.
  • Empty 'guicursor' behaves — an empty value now falls back to the default IDE caret instead of breaking it.