๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ u โ€บ stack โ€บ 2658 captured on 2023-11-04 at 16:36:55. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2023-09-28)

โžก๏ธ Next capture (2023-11-14)

๐Ÿšง View Differences

-=-=-=-=-=-=-

Comment by ๐Ÿš€ stack

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

In: s/vim

โ€” https://vi.stackexchange.com/questions/35176/how-to-get-the-lua-version-of-neovim

I know its neovim, but at least something...

๐Ÿš€ stack

2023-07-02 ยท 4 months ago

2 Later Comments โ†“

๐Ÿฆ Arkaeriit

@stack Thanks a lot. This works in normal Vim as well. Unlike Lua's builtin _VERSION, this also shows the patch level which is exactly what we I need to download a Lua version.

๐Ÿฆ Arkaeriit

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

Original Post

๐ŸŒ’ s/vim

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...

๐Ÿ’ฌ Arkaeriit ยท 3 comments ยท 2023-07-02 ยท 4 months ago