How to create custom commands for vim-mode?


I want to create a commands (for vim-mode) that does these three things:

  1. Enter search mode (the one you enter with “”)
  2. Type a search term (e.g. </div>)
  3. Press enter (so the search is performed).

Since they are many commands I have to create a custom Atom command in

atom.commands.add 'atom-text-editor', 'custom:search-term', ->
  editor = atom.workspace.getActiveTextEditor()
  // more code

I couldn’t find, though, where commands are being defined in vim-mode. I downloaded the source code of the package and did Find in Folder but couldn’t find anything. (e.g. I searched for vim-mode:search but only the keymap folder popped up).

Where can I find where the commands are being defined so I can use them in my custom Atom command?