Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actual man page of vim as popup #38

Open
HelifeWasTaken opened this issue Jun 23, 2020 · 2 comments
Open

Actual man page of vim as popup #38

HelifeWasTaken opened this issue Jun 23, 2020 · 2 comments

Comments

@HelifeWasTaken
Copy link

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

@Freed-Wu
Copy link
Contributor

Freed-Wu commented Sep 14, 2020

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("a")

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
Copy link
Contributor

some discussion about man, juliadoc, pydoc see

JuliaEditorSupport/julia-vim#195
python-mode/python-mode#1088
vim-utils/vim-man#46

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants