3 Comments
Aug 20, 2020Liked by Andrew Libby

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
author

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

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

Expand full comment