Rodrigo Broggi
Rodrigo Broggi

Reputation: 129

ideaVim action mapping with highlighted text

Even thought it is pretty clear how to map shortcuts to IDE actions (e.g. noremap g action GotoClass) I've been trying for a while to make such kind of mapping to work with highlighted text in visual mode. What I want to accomplish is simply to have a custom map that works like the innate IDE action since when in visual mode and typing ctrl+shift+N (or command+shift+O on macs) the action fill automatically the search with the highlighted text in visual mode. This doesn't work with the ideaVim remap, do you have any clue on how to accomplish that?

Thx

Upvotes: 1

Views: 1006

Answers (1)

Andrey Vlasovskikh
Andrey Vlasovskikh

Reputation: 16838

:action commands currently don't work with the visual mode / text selections. Feel free to comment / vote for VIM-862.

Upvotes: 1

Related Questions