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

Better support for non-gvim users #13

Closed
DanielAndreasen opened this issue Mar 13, 2014 · 1 comment
Closed

Better support for non-gvim users #13

DanielAndreasen opened this issue Mar 13, 2014 · 1 comment

Comments

@DanielAndreasen
Copy link

This is my first issue ever on github, so apologizes if I do this wrong.

I implemented the vim-hack, and it is working fine. However, I do not use gvim, but normal vim in the terminal. When I press -K vim goes to the terminal windows and shows me the translate rather than showing it inside vim at the bottom, as your nice example gif shows. However, when using gvim, it is working fine.
Any advice to get this working? :)

screenshot from 2014-03-13 17 33 56
screenshot from 2014-03-13 17 33 37

The two pictures shows an example. After I hit Enter, I return normally to vim.

Cheers,
Daniel

@soimort
Copy link
Owner

soimort commented Mar 13, 2014

There's no such thing like "Vim support" here. translate.awk is in no way a Vim or any editor's plugin. Remember it is just a command line program. And how it behaves depends on how you want to use them and how you configure them in your text editor.

The K command runs the external program configured by keywordprg and displays its output outside Vim. This is the default behavior of vim, but not gvim. If you want to show it inside Vim, a plugin like ftplugin/man.vim will do that for you. You may also want to map your preferred key to that.
This article may help: http://usevim.com/2012/09/07/vim101-keywordprg/

I can't provide more help on vim since I don't use it anymore; but surely you can figure this out.

@soimort soimort closed this as completed Mar 13, 2014
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