Skip to content

Commit 5284439

Browse files
author
Romain Lafourcade
committed
Added missing boilerplate
1 parent 66cebb0 commit 5284439

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

plugin/devdocs.vim

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
" tinymru.vim - Look up keywords on https://devdocs.io from Vim.
2+
" Maintainer: romainl <romainlafourcade@gmail.com>
3+
" Version: 0.0.1
4+
" License: MIT
5+
" Location: plugin/devdocs.vim
6+
" Website: https://github.com/romainl/vim-devdocs
7+
8+
if exists("g:loaded_devdocs") || v:version < 703 || &compatible
9+
finish
10+
endif
11+
let g:loaded_devdocs = 1
12+
13+
let s:save_cpo = &cpo
14+
set cpo&vim
15+
116
" What command to use
217
function! s:Cmd() abort
318
" Linux
@@ -19,3 +34,5 @@ let s:stub = get(g:, "devdocs_open_command", <SID>Cmd()) . " 'https://devdocs.io
1934
command! -bang -nargs=* DD silent! call system(len(split(<q-args>, ' ')) == 0 ?
2035
\ s:stub . (expand('<bang>') == "!" || get(g:, 'devdocs_enable_scoping', 0) == 1 ? '' : &filetype) . ' ' . expand('<cword>') . "'" : len(split(<q-args>, ' ')) == 1 ?
2136
\ s:stub . (expand('<bang>') == "!" || get(g:, 'devdocs_enable_scoping', 0) == 1 ? '' : &filetype) . ' ' . <q-args> . "'" : s:stub . <q-args> . "'")
37+
38+
let &cpo = s:save_cpo

0 commit comments

Comments
 (0)