mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -07:00
Updated extra (markdown)
parent
ed672609ed
commit
b5a275d46d
2
extra.md
2
extra.md
@ -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', '')
|
||||
|
Loading…
Reference in New Issue
Block a user