Skip to content

Commit 8a33cf1

Browse files
committed
Support GistURL
1 parent c39e5e3 commit 8a33cf1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

autoload/gist.vim

+6
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,12 @@ function! s:update_GistID(id) abort
583583
call setline('.', line . ' ' . a:id)
584584
let ret = 1
585585
endif
586+
if search('\<GistURL\>:\s*$')
587+
let line = getline('.')
588+
let line = substitute(line, '\s\+$', '', 'g')
589+
call setline('.', line . ' https://gist.github.com/' . a:id)
590+
let ret = 1
591+
endif
586592
call winrestview(view)
587593
return ret
588594
endfunction

0 commit comments

Comments
 (0)