-
Notifications
You must be signed in to change notification settings - Fork 750
Select mode
Alex Plate edited this page Nov 20, 2019
·
4 revisions
This mode is where the selection works the same as system selection. When you start typing, the text in the selected area is removed and replaced by the new characters that are being typed in.
With the help of the select mode, you can immediately enter the variable name during refactoring. You can go to the beginning or the end of a variable using the arrow keys. If you need to make more complex changes, you can always go back to normal mode with <ESC>
.
Select mode is controlled by the keymodel
, selectmode
and idearefactormode
options. Set idearefactormode
to visual
to adjust this behavior.
set idearefactormode=visual
set idearefactormode=keep
- IdeaVim options: https://github.com/JetBrains/ideavim/blob/master/doc/set-commands.md
- Vim documentation about select mode: https://vimhelp.org/visual.txt.html#Select-mode
- Stackoverflow explanation: https://vi.stackexchange.com/questions/4891/what-is-the-select-mode-and-when-is-it-relevant-to-use-it