How to write a GUI function / command in gVim?

I found only 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 like ColorPick-Dialog to select an RGB value?
Does gVim support a native GUI widget?

+6
source share
3 answers

No, It is Immpossible.

However, you can create your own DLL and libcall() . If your library should return a string (a pointer to an array of characters with a null character), it will leak.

+2
source

I do not believe that gVim supports any custom GUI widgets, but you can always use an external program that displays this dialog box and writes the output to stdout .

0
source

No, It is Immpossible.

Vim (generally) does not support any graphical interfaces. However, if you want to extend Vim, it is open source, so all you have to do is go to www.vim.org , download the source and hack. Although it will probably take a little more effort to complete what you need, not just three lines.

0
source

Source: https://habr.com/ru/post/905492/


All Articles