The phpStorm plugin for vim: https://github.com/JetBrains/ideavim, is configurable via .ideavimrc
(as per the docs). There is an example from the docs:
""" Mappings --------------------------------
map <leader>f <Plug>(easymotion-s)
map <leader>e <Plug>(easymotion-f)
map <leader>d <Action>(Debug)
map <leader>r <Action>(RenameElement)
...
There is the <Action>
mapping, where in parethesis is the action IDE should perform. Now there is a list of all supported actions in supported actions.
I would like to map to <leader>]
an action to move to next tab. In the supported actions link above, I found the action:
* |gt| {@link com.maddyhome.idea.vim.action.motion.tabs.MotionNextTabAction}
(Or I think, that is the right action, "to move to next tab"). So the I would expect the mapping to be:
map <leader>] <Action>(MotionNextTabAction)
But of course, that does not work. The action name is probably wrong, but I have no other reference then the "supported action list" from the link. So how should look the mapping? How to translate between the list and the "real" action name?
The name of the action is
NextTab
. This list is actually not a list of actions, but the list of links to implementation classes for developers. (yes, we should actually update it to be more user-friendly).Regarding the action name: usually I suggest to use "track action IDs" option to get the name of the action, but for some reason it doesn't work for this case (id of the action is not shown because of some reason). But the search via
actionlist
still works it you could use it.Anyway, why wouldn't you just create a mapping to
gt
? Likemap <leader>] gt
.