Recently, I have been looking into different methods for using Vim
to syntax highlight small blocks of code. In the process, I found
runtime/tools/xcmdsrv_client.c, which worked but seemed a little
outdated. So, after working with this a bit, I decided to create a
Ruby extension from src/if_xcmdsrv.c.
https://github.com/burns/vim_client-ruby
This is the most I've ever done in C, so it was quite the learning
experience. So, comments/suggestions are certainly welcome :)

While working with this, I found a few things I wanted to submit
for changes in if_xcmdsrv.c. I've attached 3 patches, which include
my comments.

if_xcmdsrv.patch.1 was a duplicate call to ga_init2.

if_xcmdsrv.patch.2 deals with the fact that the server is actually
sending a response to clients making input key requests (--remote-send),
even though they don't expect one, and some other thoughts.

if_xcmdsrv.patch.3 suggests some changes to the ServerWait() function,
which speeds up response time, handles an issue where the XEvent queue
is not being checked when 'localLoop' is true, and a few other thoughts.

I appreciate your time - and Vim! :)

- Brian

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Attachment: if_xcmdsrv.patch.1
Description: Unix manual page

Attachment: if_xcmdsrv.patch.2
Description: Unix manual page

Attachment: if_xcmdsrv.patch.3
Description: Unix manual page

Raspunde prin e-mail lui