vim-quickui
vim-quickui copied to clipboard
Actual man page of vim as popup
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
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
when &ft
is matlab or octave, it will display help word
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.
-
<C-R><C-w>
can get the word in the cursor directly. - you should
set keywordprg
to do it.
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.