gemivim

VIM plugin for Gemini browsing
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 1c05b93943835547bb5d221e4d97d9a8d11efdd2
parent b363a81545d4b373bce7f6d3ec20620c3314315b
Author: k1nkreet <polyakovskiy.ilya@gmail.com>
Date:   Thu, 24 Jun 2021 14:05:54 +0300

support gemini.vim filetype, add to README

Diffstat:
MREADME.md | 2+-
Mautoload/gemivim.vim | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -17,7 +17,7 @@ to use whole power of VIM with search, jumplists, tabs, whatever to browse effic ## Dependencies: - [gmni](https://git.sr.ht/~sircmpwn/gmni/) -- You may find useful [gemini-vim-syntax](https://tildegit.org/sloum/gemini-vim-syntax/) project, but it's not necessary for Gemivim +- You may find useful [gemini.vim](https://git.sr.ht/~torresjrjr/gemini.vim/) or [gemini-vim-syntax](https://tildegit.org/sloum/gemini-vim-syntax/) projects, but it's not necessary for Gemivim ## Installation: diff --git a/autoload/gemivim.vim b/autoload/gemivim.vim @@ -156,7 +156,7 @@ function! gemivim#GX() call gemivim#Get(url) elseif url =~? 'http://.*' || url =~? 'https://.*' || url =~? 'gopher://.*' call s:error_msg('Not a gemini url') - elseif &filetype ==# 'gmi' || bufname() =~? '.*\.\(gmi\|gemini\)$' + elseif &filetype =~# '\(gmi\|gemini\)' || bufname() =~? '.*\.\(gmi\|gemini\)$' call gemivim#Get(s:relative_url(s:current_url(), url)) endif endfunction