Re: Fastest interfacing with Java

2011-09-15 Thread Kerneels Roos
On 9/11/2011 12:44 PM, Nazri Ramliy wrote: On Fri, Sep 9, 2011 at 5:29 PM, Kerneels Roos wrote: I would like to know if there is a faster, more direct way to communicate with java code from inside a vim script. I don't know if it's faster or even works with plain java project, but a while ag

netbeans protocol

2011-09-15 Thread Kerneels Roos
Hi, I'm trying to get vim to communicate efficiently and with low latency with java code. The current setup / idea is to have a TCP socket server written in java receive messages from vim and query vim in some instances. Below is what I've accomplished thus far. Any advice would be much appre

Re: Fastest interfacing with Java

2011-09-15 Thread Kerneels Roos
On 9/15/2011 10:05 AM, Kerneels Roos wrote: On 9/11/2011 12:44 PM, Nazri Ramliy wrote: On Fri, Sep 9, 2011 at 5:29 PM, Kerneels Roos wrote: I would like to know if there is a faster, more direct way to communicate with java code from inside a vim script. I don't know if it's faster or ev

Re: netbeans protocol

2011-09-15 Thread Marc Weber
If you want a solution which works on linux/osx only you may also want to have a look at vim-addon-async [1] is used in the ensime client implementation. Its documentation also reference a native patch (vim only, no gui yet). The scheme interpreter for vim has a very comprehensive threading model

Re: Fastest interfacing with Java

2011-09-15 Thread Benjamin R. Haskell
On Thu, 15 Sep 2011, Kerneels Roos wrote: On 9/15/2011 10:05 AM, Kerneels Roos wrote: On 9/11/2011 12:44 PM, Nazri Ramliy wrote: On Fri, Sep 9, 2011 at 5:29 PM, Kerneels Roos wrote: I would like to know if there is a faster, more direct way to communicate with java code from inside a vim s

Re: netbeans protocol

2011-09-15 Thread Kerneels Roos
On 9/15/2011 11:21 AM, Marc Weber wrote: If you want a solution which works on linux/osx only you may also want to have a look at vim-addon-async [1] is used in the ensime client implementation. Its documentation also reference a native patch (vim only, no gui yet). Thanks, will investigate. Be

Re: netbeans protocol

2011-09-15 Thread Marc Weber
Excerpts from Kerneels Roos's message of Thu Sep 15 12:00:18 +0200 2011: > Looks like my gvim on win32, the standard distro doesn't have if_scheme > compiled in. Looking at ":he if_py", which I suppose the if_scheme > support is similar to, it looks like you can get vim to exec language X > (pyt

Re: netbeans protocol

2011-09-15 Thread Kerneels Roos
On 9/15/2011 12:19 PM, Marc Weber wrote: Excerpts from Kerneels Roos's message of Thu Sep 15 12:00:18 +0200 2011: Looks like my gvim on win32, the standard distro doesn't have if_scheme compiled in. Looking at ":he if_py", which I suppose the if_scheme support is similar to, it looks like you

Re: netbeans protocol

2011-09-15 Thread Xavier de Gaye
On Thu, Sep 15, 2011 at 10:48 AM, Kerneels Roos wrote: > NETBEANS PROTOCOL: > I've made some experiments with the netbeans protocol interfacing vim > provides when started with the -nb flag or the :nbstart command inside a > running instance. > > On win32 at least the -nb command line option with t

Re: netbeans protocol

2011-09-15 Thread Yukihiro Nakadaira
Perhaps you might be interested in vim-remote, Vim clientserver protocol library. https://github.com/ynkdir/vim-remote -- Yukihiro Nakadaira - yukihiro.nakada...@gmail.com -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying

Re: netbeans protocol

2011-09-15 Thread Marc Weber
Excerpts from Kerneels Roos's message of Thu Sep 15 13:02:07 +0200 2011: > 2. get if_scheme enabled gvim and vim and experiment there If you're too lazy compiling it I can give you access to an SSH / VNC account which provides such Vim. Good luck. Marc Weber -- You received this message from th

:redir make confusion of cursor position in command line.

2011-09-15 Thread mattn
Hi. Try following on windows. script1 function! DoSpace() return ' ' endfunction cnoremap DoSpace() script2 function! DoSpace() redir => foo silent! command redir END return ' ' endfunction cnoremap DoSpace() When run script1 and type ":XXX " in norma

Re: :redir make confusion of cursor position in command line.

2011-09-15 Thread mattn
Ah sorry. it should be more strictly. https://gist.github.com/1219080 diff -r 15b934a16641 src/ex_docmd.c --- a/src/ex_docmd.c Wed Sep 14 19:04:40 2011 +0200 +++ b/src/ex_docmd.c Thu Sep 15 21:19:47 2011 +0900 @@ -8628,9 +8628,16 @@ char *mode; char_u *fname; char_u *arg = eap->ar

Re: netbeans protocol

2011-09-15 Thread Kerneels Roos
On 9/15/2011 1:12 PM, Marc Weber wrote: Excerpts from Kerneels Roos's message of Thu Sep 15 13:02:07 +0200 2011: 2. get if_scheme enabled gvim and vim and experiment there If you're too lazy compiling it I can give you access to an SSH / VNC account which provides such Vim. I am (too lazy)!

atari xl/xe extenssions for xxd

2011-09-15 Thread Jerzy Kut
Hello. I'm new on vim-dev. I'm enthusiast of old 8-bit Atari XL/XE computers and I write programs for these machines from time to time. In my 8-bit works I often use xxd tool (on PC of course) to view some kind of binary files. Atari XL/XE series computers have two standards of text encoding: - A

Re: Issue 9 in vim: cindent: regression in C++ class indenting after 7.3.202

2011-09-15 Thread vim
Comment #1 on issue 9 by martin.g...@googlemail.com: cindent: regression in C++ class indenting after 7.3.202 http://code.google.com/p/vim/issues/detail?id=9 Since this bug is pretty annoying, I had a look at the code introduced by patch 7.3.202 and wrote a quick fix for the indentation iss

awk indentation

2011-09-15 Thread Donald Allen
If you have following in a vim buffer, file named, say, foo.awk /some test/ { if (foo != "bar") { if (baz != ""){ array1[xyz] = N if (N > max_N) max_N = N } xyz = temp[1] # Create print "," > "something.sql" split(description,temp,parse_descriptions[file]) print "\t-- "temp[1] > "something.sql" pr

Re: awk indentation

2011-09-15 Thread Jakson Alves de Aquino
On Thu, Sep 15, 2011 at 3:51 PM, Donald Allen wrote: > If you have following in a vim buffer, file named, say, foo.awk > > /some test/ { > if (foo != "bar") { > if (baz != ""){ > array1[xyz] = N > if (N > max_N) max_N = N > } > xyz = temp[1] > # Create > print "," > "something.sql" > split(descrip

Re: awk indentation

2011-09-15 Thread Gary Johnson
On 2011-09-15, Donald Allen wrote: > If you have following in a vim buffer, file named, say, foo.awk > > /some test/ { > if (foo != "bar") { > if (baz != ""){ > array1[xyz] = N > if (N > max_N) max_N = N > } > xyz = temp[1] > # Create > print "," > "something.sql" > split(description,temp,parse_de

Re: [patch] Restore behavior of C on blank last line

2011-09-15 Thread Bram Moolenaar
James Vega wrote: > Patch 7.3.251 inadvertently changed how C behaves on the last line of > the file, when it is blank. Given this command > > vim -u NONE -N -c 'call setline("$", ["11", ""])' -c 'call feedkeys("GC")' > > pre-7.3.251 would simply leave the cursor in insert mode on line 2. >

Re: awk indentation

2011-09-15 Thread Donald Allen
On Thu, Sep 15, 2011 at 4:16 PM, Jakson Alves de Aquino wrote: > On Thu, Sep 15, 2011 at 3:51 PM, Donald Allen wrote: >> If you have following in a vim buffer, file named, say, foo.awk >> >> /some test/ { >> if (foo != "bar") { >> if (baz != ""){ >> array1[xyz] = N >> if (N > max_N) max_N = N >>

Re: awk indentation

2011-09-15 Thread Donald Allen
On Thu, Sep 15, 2011 at 4:18 PM, Gary Johnson wrote: > On 2011-09-15, Donald Allen wrote: >> If you have following in a vim buffer, file named, say, foo.awk >> >> /some test/ { >> if (foo != "bar") { >> if (baz != ""){ >> array1[xyz] = N >> if (N > max_N) max_N = N >> } >> xyz = temp[1] >> # Creat

Re: awk indentation

2011-09-15 Thread Donald Allen
On Thu, Sep 15, 2011 at 4:18 PM, Gary Johnson wrote: > On 2011-09-15, Donald Allen wrote: >> If you have following in a vim buffer, file named, say, foo.awk >> >> /some test/ { >> if (foo != "bar") { >> if (baz != ""){ >> array1[xyz] = N >> if (N > max_N) max_N = N >> } >> xyz = temp[1] >> # Creat

Re: :redir make confusion of cursor position in command line.

2011-09-15 Thread mattn
Shoud be applied to row. diff -r 15b934a16641 src/ex_docmd.c --- a/src/ex_docmd.c Wed Sep 14 19:04:40 2011 +0200 +++ b/src/ex_docmd.c Fri Sep 16 10:23:53 2011 +0900 @@ -8628,9 +8628,19 @@ char *mode; char_u *fname; char_u *arg = eap->arg; +static int save_msg_col = -1; +stat

Re: awk indentation

2011-09-15 Thread Zvezdan Petkovic
On Thu, Sep 15, 2011 at 4:18 PM, Gary Johnson wrote: > Vim's indentation of most languages (except C) is done by plugins. > These reside in $VIMRUNTIME/indent and are contributed and > maintained by a number of different authors. In the case of awk, > the indentation plugin is $VIMRUNTIME/inden

Re: awk indentation

2011-09-15 Thread Donald Allen
On Thu, Sep 15, 2011 at 10:43 PM, Zvezdan Petkovic wrote: > > On Thu, Sep 15, 2011 at 4:18 PM, Gary Johnson wrote: > >> Vim's indentation of most languages (except C) is done by plugins. >> These reside in $VIMRUNTIME/indent and are contributed and >> maintained by a number of different authors.

Re: awk indentation

2011-09-15 Thread Zvezdan Petkovic
On Sep 16, 2011, at 12:05 AM, Donald Allen wrote: > If I have a chance, I will send examples tomorrow, but I need > to get my work done (as opposed to fighting with an editor) No hurry. The work is more important. FWIW, I'll be at a conference the next two days. I probably will not be able to re