Ask HN: What kind of sample Vim plugin should I build in LVSTHW?

https://news.ycombinator.com/item?id=3107304
by stevelosh • 15 years ago
33 10 15 years ago

I've been working on Learn Vimscript the Hard Way[1] and I've been making pretty good progress.

I need advice on the third section of the book. In the third part I want to walk through writing a Vim plugin from scratch. I want it to be something significant that touches a lot of aspects of writing Vim plugins, but I don't want to just make something arbitrary that no one would ever use.

Right now I'm leaning toward writing a plugin for a language that doesn't already have one: Potion[2]. A plugin for a language can touch on syntax, folding, compilers, ft-specific mappings, and tons more.

If you have ideas for a good example plugin that's not too complex (it has to fit into one third of an already short book) but touches lots of aspects of Vimscript and isn't completely contrived, I'd love to hear them.

[Learn Vimscript the Hard Way]: http://learnvimscriptthehardway.stevelosh.com/

[Potion]: http://www.runciter.net/potion/

Related Stories

Loading related stories...

Source preview

news.ycombinator.com