sponsor Vim development Vim logo Vim Book Ad

caniuse.vim : Quickly search caniuse.com from vim

 script karma  Rating 1/1, Downloaded by 437  Comments, bugs, improvements  Vim wiki

created by
Zoee Silcock
script type
This plugin allows you to perform searches on caniuse.com directly from vim.

Repository and issues: https://github.com/zoeesilcock/vim-caniuse


You can trigger a search from normal mode in which case it will pick the word under the cursor or you can trigger it from visual mode which will search for the selection.

The built in mapping is:


You can also use command mode:

  :Caniuse border-radius


You can disable the built in mapping by adding this to your .vimrc:

  let g:caniuse_no_mappings = 1

If you want to setup your own key mappings use the following:

<Plug>Ncaniuse          For normal mode.
<Plug>Vcaniuse          For visual mode.

For example:

  :nmap <leader>foo <Plug>Ncaniuse
  :vmap <leader>foo <Plug>Vcaniuse

Note: Using :noremap will not work with <Plug> mappings.


The plugin should work out of the box on most systems, but opening a URL in your web browser requires an external program. The plugin will do it's best to find the built in command on your system. On Linux it assumes that you have xdg-open which is installed by default on most distributions (it's part of the xdg-utils package in case you happen to not have it).

If the plugin fails to find the right command or you want to use another one you can specify the command in your .vimrc file:

  let g:caniuse_browser_command = 'open'

The command you put here will be called with the URL as a parameter.
install details

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-caniuse.zip 1.0 2014-06-01 7.0 Zoee Silcock Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.