Jump to next method


Consider a situation where you seek to find a method, but don’t quite remember the name of the method. Here it would be quite useful to jump from method to method eyeing up the names. Enter ]m. The motion ]m jumps forward to the next method or function. Jumping back can be carried out with [m.

The following method jump options exist:

  • ]m jump to the beginning of the next method
  • ]M jump to the end of the next method
  • [m jump to the beginning of the previous method
  • [M jump to the end of the previous method

In the gif below I demonstrate each of these four options:

How useful was this tip?

Average rating 4.1 / 5. Vote count: 324

No votes so far! Be the first to rate this tip.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Written by

Andy Libby

30 Posts

Rider of bicycles. Writer of code. User of Vim.
View all posts

Leave a reply

Your email address will not be published. Required fields are marked *