TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Writing your first Vim plugin using Ruby

14 pointsby thecoffmanover 14 years ago

5 comments

bingamanover 14 years ago
Vim needs to be compiled with Ruby support for this to work. If you're on a Mac, the default installation of vim is -ruby, but it's possible to run MacVim (which does have Ruby support) in terminal if you want to.<p>Nice writeup though.
评论 #1994764 未加载
jordinlover 14 years ago
I'm getting "502 Bad Gateway"
评论 #1994562 未加载
xthoover 14 years ago
IMHO the use of an embedded interpreter really only pays off for plugins that perform a more or less complex task like parsing or something that requires functionality that VimL doesn't provide like internet access or interprocess communication etc. For simpler tasks, I'd suggest to stick with VimL.
crazydiamondover 14 years ago
Great. I've always wanted to write plugins. Would really appreciate if this could be followed up with a few more samples with some more functionality. Such as opening a small input window at the bottom for input and one for selection (as say in Command-T or fuzzy file finder).
qzioover 14 years ago
simple and short to get started, I like!