vim-quickui icon indicating copy to clipboard operation
vim-quickui copied to clipboard

Actual man page of vim as popup

Open HelifeWasTaken opened this issue 4 years ago • 2 comments

I was pretty hyped about getting a man so I made this :

nnoremap K "ayiw:call quickui#tools#display_help("<C-R>a")<CR>

But I noticed that it won't recognise things as let or nocompatible etc...

I was wondering that was possible to get that

In case of the command i made just yank the current word sets it the "a" register and then print it inside the brackets of the called function

I did this to replace the default K command

Btw love your work <3

HelifeWasTaken avatar Jun 23 '20 12:06 HelifeWasTaken

I also wana this feature:) and in fact, i hope when user press K in a word, it will display the help of this word. e.g. when &ft is bash or c, it will display man word

image

image

when &ft is matlab or octave, it will display help word

image

and &ft is python, it will display pydoc word

...julia...juliadoc word ...asm....cgasm word ...vim....:help word etc

in autoload/quickui/tools.vim:197, @skywind3000 has realized a single function. and left some unfinished work. perhaps we can help.

BTW

nnoremap K "ayiw:call quickui#tools#display_help("<C-R>a")<CR>

it is not good.

  1. <C-R><C-w> can get the word in the cursor directly.
  2. you should set keywordprg to do it.

Freed-Wu avatar Sep 14 '20 08:09 Freed-Wu

some discussion about man, juliadoc, pydoc see

https://github.com/JuliaEditorSupport/julia-vim/issues/195 https://github.com/python-mode/python-mode/issues/1088 https://github.com/vim-utils/vim-man/issues/46

if this plugin can realize the feature, it will be pretty good.

Freed-Wu avatar Sep 14 '20 08:09 Freed-Wu