Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write a GUI function/command in gVim?

Tags:

vim

I only found three types of dialog in gVim:

:let n = inputdialog("value for shiftwidth", &sw)
:call confirm("Save changes?", "&Yes\n&No\n&Cancel")
:browse e

Can I write a GUI Dialog, such as a ColorPick-Dialog to choose RGB value?
Does gVim support custom GUI widget?

like image 868
kev Avatar asked Jan 09 '12 07:01

kev


1 Answers

No, it is not possible.

However you can make up your own DLL and libcall(). If your library must return a string (pointer to a zero-terminated array of characters) it will leak.

like image 82
Benoit Avatar answered Oct 29 '22 20:10

Benoit