3 Comments
User's avatar
Tamas's avatar

Hi Andrew! How does vim knows what is a function? You used Python in your examples, but what if I use Javascript, Go, or something more niche like Scala?

Expand full comment
Andrew Libby's avatar

If I understand it correctly, I is derived from the ftype (file mode). In some languages (C, Javascript, etc) where braces are used, it's less precise, where it jumps by block. Not precisely method or function, but once you get the feel for how it works for a particular file type it's certainly still useful.

Expand full comment
Ram Tummla's avatar

In languages where braces are used, try ']]' and '[[' instead

Expand full comment