Skip to content

Commit

Permalink
Explain the project
Browse files Browse the repository at this point in the history
  • Loading branch information
kconner committed Aug 18, 2020
1 parent 09f27a7 commit 3a5122c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# vim-syntax-gemtext

This project adds a Gemtext syntax mode for [vim](https://www.vim.org), with syntax highlighting and file type detection.

## Setup

Copy `syntax/gemtext.vim` to `~/.vim/syntax/gemtext.vim`.

> This file describes the "gemtext" syntax mode. It matches the `text/gemini` MIME type described by section 5 of the [Gemini Specification](https://gemini.circumlunar.space/docs/specification.html).
Copy `ftdetect/gemtext.vim` to `~/.vim/ftdetect/gemtext.vim`.

> This file associates Gemtext syntax with files ending in ".gmi" and ".gemini".
2 changes: 0 additions & 2 deletions ftdetect/gemtext.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
" Vim file type detection for Gemtext markup

" Add this file to ~/.vim/ftdetect/gemtext.vim

au BufRead,BufNewFile *.gmi set filetype=gemtext
au BufRead,BufNewFile *.gemini set filetype=gemtext
3 changes: 0 additions & 3 deletions syntax/gemtext.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
" as described by section 5 of the Gemini Specification
" https://gemini.circumlunar.space/docs/specification.html

" Add this file to ~/.vim/syntax/gemtext.vim

if exists("b:current_syntax")
finish
endif
Expand Down Expand Up @@ -37,4 +35,3 @@ hi def link gemtextQuoteOperator Operator
hi def link gemtextQuoteText String

hi def link gemtextPreformatBlock PreProc

0 comments on commit 3a5122c

Please sign in to comment.