Tools

Brian Evans b__m__e at mailfence.com
Tue Mar 3 21:05:04 GMT 2020


Solderpunk write's:
> [ ... ] So, let's spend most of our Gemini energy until June on creating
> content and tools! 

While thinking out content ideas I thought it might be nice to have some
basic tooling available. To that end I have created a highlight syntax and
file recognition for text/gemini documents when edited with Vim.

The spec for said documents is not very complex and syntax highlighting
may not be necessary, but it is nice to have to more clearly see what you
are working with.

The syntax covers everything in the current spec (preformatted blocks,
list items, headings, and links). The way it handles the url portion of a link
is extremely naive, but should work for most basic purposes (it does not
url formatting validation... any text coming after the magic string until the
next space is considered the url).

I have included a makefile for easy install into a local environment (users of
non-standard Vim implementations like SpaceVim will need to move the
files manually).

The filetype recognition recognizes files with a filetype equal to "gmi"). It is 
my understanding that that has become the common filetype. If that is not 
the case and additional support is required please let me know.

If anyone experiences any issues not spoken of in the README or has
ideas for updates or changes feel free to open an issue at the repo or
e-mail me directly.

Syntax available here:
https://tildegit.org/sloum/gemini-vim-syntax

Enjoy!


More information about the Gemini mailing list