summaryrefslogtreecommitdiffstats
path: root/vim/plugin/keywordprg.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/plugin/keywordprg.vim')
-rw-r--r--vim/plugin/keywordprg.vim33
1 files changed, 0 insertions, 33 deletions
diff --git a/vim/plugin/keywordprg.vim b/vim/plugin/keywordprg.vim
deleted file mode 100644
index dfedd80..0000000
--- a/vim/plugin/keywordprg.vim
+++ /dev/null
@@ -1,33 +0,0 @@
-function! Help(visual, iskeyword, command)
- let l:iskeyword = &iskeyword
- for l:kw in a:iskeyword
- exe 'set iskeyword+=' . l:kw
- endfor
- if a:visual
- let l:oldreg = @a
- normal! gv"aygv
- let l:word = @a
- let @a = l:oldreg
- else
- let l:word = expand('<cword>')
- endif
- let &iskeyword = l:iskeyword
-
- exe 'noswapfile ' . &helpheight . 'new ' . l:word
- setlocal buftype=nofile
- setlocal bufhidden=wipe
- setlocal nobuflisted
-
- setlocal modifiable
- exe 'call ' . a:command . '("' . l:word . '")'
- normal! ggdd
- setlocal nomodifiable
-endfunction
-
-function! s:man(word)
- exe 'silent read! man -Pcat ' . a:word
- setlocal filetype=man
-endfunction
-
-nnoremap <silent>K :call Help(0, [], '<SID>man')<CR>
-xnoremap <silent>K :call Help(1, [], '<SID>man')<CR>