README.md 690 Bytes
Newer Older
Marco Kellershoff's avatar
Marco Kellershoff committed
1
# OpenUrl.nvim
Marco Kellershoff's avatar
Marco Kellershoff committed
2 3

A Vim/Neovim plugin to open URLs in your default browser.
4 5 6 7 8 9 10 11 12

## Mapping

There are no mappings registered by the plugin.

You need to map it according to your preference.

Here's a quick example:

13
```vim
14
" OpenUrl.nvim binding
15
nnoremap <leader>q :call OpenUrl#UnderCursor()<CR>
16 17 18 19 20
```

## investigate.vim integration

There's also support for [investigate.vim][investigate.vim].
21

22 23 24 25
The following snippet will fallback to investigate.vim's
`investigate#Investigate()` if `OpenUrl#GetUrl` can't find a valid URL.

```vim
26
" Use keith/investigate.vim as a fallback, if it's not an URL
27
let g:OpenUrl_DarkInvestigate = 1
28 29
```

30 31
[investigate.vim]: https://github.com/keith/investigate.vim