summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <bevans@formulafolios.com>2020-05-15 09:38:58 -0700
committerBrian Evans <bevans@formulafolios.com>2020-05-15 09:38:58 -0700
commitd2fa7f69878e76a709052c89d89e5d1051b764e1 (patch)
tree525c543bd9452dc21e4bd72f3ce057053a1cdfbd
parent071b71bf0ccb0fba2f5bd84bb0b9572c5f1880c0 (diff)
Adds .gemini suffix
-rw-r--r--README.md4
-rw-r--r--ftdetect/gmi.vim3
2 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index a69f5a2..94c5d79 100644
--- a/README.md
+++ b/README.md
@@ -33,9 +33,11 @@ I plan to update the syntax when and if the spec adds more items to *text/gemini
## Filetype
-This syntax is set up to be used with files labled with the **gmi** extension. For example:
+This syntax is set up to be used with files labled with the **gmi** or **gemini** extensions. For example:
```
$ vim my_gemini_map.gmi
+# or
+$ vim my_gemini_map.gemini
```
## Surprises
diff --git a/ftdetect/gmi.vim b/ftdetect/gmi.vim
index 2040f0c..ee6e1fc 100644
--- a/ftdetect/gmi.vim
+++ b/ftdetect/gmi.vim
@@ -1,2 +1,3 @@
-au BufRead,BufNewFile *.gmi set filetype=gmi
+au BufRead,BufNewFile *.gmi,*.gemini set filetype=gmi
" Gemini protocol syntax for text/gemini files (*.gmi)
+" will also work for *.gemini files