Search code examples
rubyvim

How does one navigate Ruby methods in VIM?


I'm learning VIM for Rails development and would like to easily navigate methods in a file. So far I see several options:

  • Find 'def' by using

    /def<space>
    
  • Create a macro that corresponds to a key using q and record
  • use VIM marks? (not even sure what they do, they just sound promising

Anyone have any better ideas?


Solution

  • :help ]m

    I think it requires vim-ruby for ruby support.