Updated extra (markdown)

Junegunn Choi 2017-03-15 01:13:53 +09:00
parent ed672609ed
commit b5a275d46d

@ -32,7 +32,7 @@ Press `gx` to open the GitHub URL for a plugin or a commit with the default brow
```vim
function! s:plug_gx()
let line = getline('.')
let sha = matchstr(line, '^ \X*\zs\x\{7}\ze ')
let sha = matchstr(line, '^ \X*\zs\x\{7,9}\ze ')
let name = empty(sha) ? matchstr(line, '^[-x+] \zs[^:]\+\ze:')
\ : getline(search('^- .*:$', 'bn'))[2:-2]
let uri = get(get(g:plugs, name, {}), 'uri', '')