File: open.vim

package info (click to toggle)
vim-link-vim 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 524 kB
  • sloc: python: 66; makefile: 30
file content (12 lines) | stat: -rw-r--r-- 334 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
" Open an external link in the default browser. Open an internal link in the
" editor.
function! linkvim#x#open#open() abort
    let l:link = linkvim#link#get()

    if empty(l:link) || l:link.type ==# 'word'
      call linkvim#log#info('No link found under cursor')
      return
    endif

    call linkvim#link#follow()
endfunction