Comment by ๐Ÿฆ Arkaeriit

Re: "What is the best way to write a plugin in Lua and C?"

In: s/vim

I managed to make it work. Thanks again @stack.

๐Ÿฆ Arkaeriit [OP]

2023-07-02 ยท 3 years ago

Original Post

๐ŸŒ’ s/vim

๐Ÿฆ Arkaeriit:

What is the best way to write a plugin in Lua and C? โ€” I wrote a plugin to use Vim as a hex editor. As there is quite a bit of computation to do I prefered not to do them in Vimscript. As the hex editor will manipulate arbitrary data and not text, Lua seemed a better choice than Python as the strings don't need to contain only Unicode characters. As some functions do heavy computation, I wrote them in C for the very substantial speed boost. Unfortunately, compiling the C librairy is not...

๐Ÿ’ฌ 3 comments ยท 2023-07-02 ยท 3 years ago