Re: Vim client-server communication

2009-12-14 Thread Chris Jones
On Tue, Dec 15, 2009 at 01:35:53AM EST, Marc Weber wrote: > > In any event, thanks much for your comments. I'll study your script when > > time allows, and I'm sure things will become a lot clearer. > > Hi Chris, > > I'm unsure what you want to do. :-) No wonder, I haven't a clue myself. It's

Re: Vim client-server communication

2009-12-14 Thread Marc Weber
> In any event, thanks much for your comments. I'll study your script when > time allows, and I'm sure things will become a lot clearer. Hi Chris, I'm unsure what you want to do. you can just do feed_to_vim(){ "$@" > /tmp/file vim --server --command :cfile /tmp/file } Syntax is wrong. But yo

Re: Vim client-server communication

2009-12-14 Thread Chris Jones
On Mon, Dec 14, 2009 at 11:48:54PM EST, Marc Weber wrote: > > Would a compile task be an example, and the call back opens a tab > > with a list of errors for instance.? Or is it just a message > > displayed at the bottom of the screen to inform the user that the > > task has completed, and a possi

Re: Vim client-server communication

2009-12-14 Thread Marc Weber
> Would a compile task be an example, and the call back opens a tab with > a list of errors for instance.? Or is it just a message displayed at the > bottom of the screen to inform the user that the task has completed, and > a possible completion code? You usually prefer quickfix or errorlists ove

Vim script support of socket access or IPC (inter-process communication) ?

2009-12-14 Thread pansz
Hi, For some reason I need to access some local service within vim, this can be Unix socket (d-bus, x message, etc.) or TCP socket (http, ftp, etc.). A typical example is an IM engine, which can provide service to both XIM and vimim. The engine may need a relatively long start-up time to build

Re: how to match a "," that IS NOT in comment

2009-12-14 Thread aj3423
Thanks for your reply. I'm trying to write a vim plugin that checks trailing comma for .js file, I'm using "match Error" when the buffer saves, but there is another function in the plugin: :vimgrep /the regex/ **/*.js so there should be a regex to fit these 2 functions. //Brs -- View this m

Re: How to compile with guifont ?

2009-12-14 Thread pansz
Timothy Madden 写道: > Hello > > I compiled vim on a debian server and installed in in my home folder > (~/usr/local), > but the resulting executable can see no fonts when I press Tab on >:set guifont= > and the default font is looking too condensed. The Edit menu has no GUI Font > entry. X11-A

Re: Vim calendar and T-shirt

2009-12-14 Thread Bram Moolenaar
ViZpal wrote: > On Dec 13, 5:44 pm, Bram Moolenaar wrote: > > Hello Vim users! > > > > The Vim calendar has been updated for 2010. I replaced the info about > > my old A-A-P project with Zimbu, which you probably find a bit more > > interesting. You can find the calendar in PDF format, ready t

Re: Vim calendar and T-shirt

2009-12-14 Thread Bram Moolenaar
Bill Lam wrote: > lun, 14 Dec 2009, Isaac skribis: > > World Vision is a Christian humanitarian organization dedicated to > > working with children, families, and their communities worldwide to > > reach their full potential by tackling the causes of poverty and > > injustice. > > I heard this o

Re: Caught deadly signal ABRT

2009-12-14 Thread Matt Wozniski
On Fri, Dec 4, 2009 at 12:52 AM, MK wrote: > I just installed ubuntu 9.10 and the stock vim does not recognize --remote, > which totally cripples the way I work with it, so I built from the 7.2 > source, which I have done on FC and debian quite a few times.  It appears to > build fine, but when

Re: Vim client-server communication

2009-12-14 Thread Chris Jones
On Mon, Dec 14, 2009 at 09:58:59AM EST, Marc Weber wrote: > > If I understand correctly, you're in Vim and start some long running > > task in the background so you can do something else in the meantime? > Yes, basically I do a > > :!sh -c "runtask ; call_back_into_vim" & Would a compile task be

Re: Extension of SqlOracle syntax

2009-12-14 Thread Dennis Benzinger
Gabor Urban wrote: > Hi, > > I would like to extend the standard Oracle-sql syntax description to > recognize special PL-SQL elements. Where should I put the personalized > file to avoid tempering with the distributed syntax file? > > Gabor I can't answer your question, but Vim already has a pls

Extension of SqlOracle syntax

2009-12-14 Thread Gabor Urban
Hi, I would like to extend the standard Oracle-sql syntax description to recognize special PL-SQL elements. Where should I put the personalized file to avoid tempering with the distributed syntax file? Gabor -- Linux: Choice of a GNU Generation -- You received this message from the "vim_use"

Re: Problem with indenting ruby code (SOLVED!)

2009-12-14 Thread Tuo Pe
Found out the reason. I have this ruby indentation vim-file: http://www.vim.org/scripts/script.php?script_id=2742. It requires IndentAnything (http://www.vim.org/scripts/script.php?script_id=1839), which I had somehow removed. After re-installing it, everything works. Tuo --- On Mon, 12/14/09,

Re: vim vs gvim -v

2009-12-14 Thread Gary Johnson
On 2009-12-14, Gary Johnson wrote: > Rather than build your own vim with +X11, etc., you could link gvim > to a vim that appears earlier in your PATH than your distribution's > vim, e.g., > > ln -s $(which gvim) ~/bin Sorry, that's wrong. It should be ln -s $(which gvim) ~/bin/vim Reg

Re: vim vs gvim -v

2009-12-14 Thread Gary Johnson
On 2009-12-14, Paul wrote: > On Mon, Dec 14, 2009 at 09:30:48AM -0800, Gary Johnson wrote: > >diff <(vim --version) <(gvim --version) > > > >I suspect that your vim and your gvim are different binaries and > >that gvim has support for the mouse compiled in whereas vim does > >not. > > My golly

Re: vim vs gvim -v

2009-12-14 Thread Tim Chase
>> I suspect that your vim and your gvim are different binaries >> and that gvim has support for the mouse compiled in whereas >> vim does not. > > My golly, you are right! I'll paste the diff below. I guess > I'll have to compile with +X11, unless I can start gvim like > -v but with compatible mo

Re: how to match a "," that IS NOT in comment

2009-12-14 Thread Gary
By the fact that you mention ":match ...", may I assume you're defining rules in a syntax file? If so, you should be able to do what you want using 'contained' -- i.e., make sure that "match Error" is flagged with "contained", and not contained in the comment group, but is contained in other(s); po

Re: J oining lines without cursor movement

2009-12-14 Thread Gary
You could use the command :s/\n// But note you may not get exactly the same result as J. Since the (example) line ends with a period, when I join those two lines, I get two blanks between the '.' and the 'T' (see 'joinspaces'). Also, it moves the cursor to the beginning of the line (vs. the joi

Re: vim vs gvim -v

2009-12-14 Thread Paul
On Mon, Dec 14, 2009 at 09:30:48AM -0800, Gary Johnson wrote: >diff <(vim --version) <(gvim --version) > >I suspect that your vim and your gvim are different binaries and >that gvim has support for the mouse compiled in whereas vim does >not. My golly, you are right! I'll paste the diff below.

Re: vim vs gvim -v

2009-12-14 Thread Gary Johnson
On 2009-12-14, Paul wrote: > The only way I can get the mouse to move a split window partition > within vim is to start it as 'gvim -v'. (I have set mouse=a in > .vimrc already.) This starts in nocompatible mode. I did a diff of > the options (:set) when running as vim and gvim -v, and the only > d

Re: Local highlighting

2009-12-14 Thread Brett Stahlman
On Dec 14, 8:41 am, Aarto Matti wrote: > Hello, > > Is it possible to apply highlighting to a particular text block or lines > range (from line n to line m), whatever but not the whole buffer? Aarto, If I understand what you're asking, you can do it with the Txtfmt plugin: http://www.vim.org/sc

vim vs gvim -v

2009-12-14 Thread Paul
The only way I can get the mouse to move a split window partition within vim is to start it as 'gvim -v'. (I have set mouse=a in .vimrc already.) This starts in nocompatible mode. I did a diff of the options (:set) when running as vim and gvim -v, and the only difference is that gvim -v has gui

Re: WikiStickies

2009-12-14 Thread Ben Fritz
On Dec 13, 3:18 am, "John Beckett" wrote: > FYI: More nonsense from Wikia. > > Some of you have accounts at vim.wikia.com and if you go to your > "My Home" page you will notice a new feature. Here is the > announcement (it does not say much): > > http://www.wikia.com/wiki/User_blog:Toughpigs/Wik

Re: command works interactively but does not work in script

2009-12-14 Thread Ben Fritz
On Dec 12, 4:20 pm, Uday K2 wrote: > > When I store the above command in a script file, and use > vim -s

Re: How to delay execution of map?

2009-12-14 Thread Jeremy
On Dec 14, 5:24 am, Tim Chase wrote: > Jeremy wrote: > > I have a map set whenever I enter 'ib' (without quotes) the text > > expands.  However, sometimes I write ib as part of a word and I don't > > want the map to be executed unless it is part of a word all by > > itself.  Is it possible to do

Re: Problem calling system() on quoted strings in Windows

2009-12-14 Thread Benjamin Fritz
On Sat, Dec 12, 2009 at 7:24 AM, Bram Moolenaar wrote: >> Bram, could this be added to the todo list? > > It's already there. > Oops, so it is. Sorry. I thought I searched todo.txt for shellxquote, but I see now I must have had a typo in my search or something. -- You received this message from

Re: Vim calendar and T-shirt

2009-12-14 Thread Robert Melton
On 12/14/2009 9:36 AM, bill lam wrote: > lun, 14 Dec 2009, Isaac skribis: > >> World Vision is a Christian humanitarian organization dedicated to >> working with children, families, and their communities worldwide to >> reach their full potential by tackling the causes of poverty and >> injusti

Re: Vim client-server communication

2009-12-14 Thread Marc Weber
> If I understand correctly, you're in Vim and start some long running > task in the background so you can do something else in the meantime? Yes, basically I do a :!sh -c "runtask ; call_back_into_vim" & Good luck Marc Weber -- You received this message from the "vim_use" maillist. For more in

RE: How to delay execution of map?

2009-12-14 Thread Rogers, Brian A.
>I have a map set whenever I enter 'ib' (without quotes) the text expands. However, sometimes I write ib as part of a word and I don't want the map to be executed unless it is part of a word all by itself. Is it possible to do this? Or perhaps to wait a bit of time to see if I type anything aft

Local highlighting

2009-12-14 Thread Aarto Matti
Hello, Is it possible to apply highlighting to a particular text block or lines range (from line n to line m), whatever but not the whole buffer? -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php

Re: Vim calendar and T-shirt

2009-12-14 Thread bill lam
lun, 14 Dec 2009, Isaac skribis: > World Vision is a Christian humanitarian organization dedicated to > working with children, families, and their communities worldwide to > reach their full potential by tackling the causes of poverty and > injustice. I heard this organisation is being well known

Re: How to delay execution of map?

2009-12-14 Thread Tim Chase
Jeremy wrote: > I have a map set whenever I enter 'ib' (without quotes) the text > expands. However, sometimes I write ib as part of a word and I don't > want the map to be executed unless it is part of a word all by > itself. Is it possible to do this? Or perhaps to wait a bit of time > to see

Re: client-server for a gdb fronted

2009-12-14 Thread borasah
On Monday 14 December 2009 03:35, Chris Jones wrote: > On Sun, Dec 13, 2009 at 05:18:50PM EST, Suresh Govindachar wrote: > > Around Sunday, December 13, 2009 8:24 AM, Bora Sahin asked: > > > I would like to interface gdb to Vim. I know there are a few > > > alternatives but as far as I see none o

Re: client-server for a gdb fronted

2009-12-14 Thread borasah
Hi Suresh, > How about > http://vim.wikia.com/wiki/VimTip357 > which relates to the plugin > http://www.vim.org/scripts/script.php?script_id=84 > > --Suresh Thanks for the link. I think it gives enough tips to implement what I mentioned. -- Borea Sahin -- You re

Re: Vim calendar and T-shirt

2009-12-14 Thread viZpal
On Dec 13, 5:44 pm, Bram Moolenaar wrote: > Hello Vim users! > > The Vim calendar has been updated for 2010.  I replaced the info about > my old A-A-P project with Zimbu, which you probably find a bit more > interesting.  You can find the calendar in PDF format, ready to print, > here:http://www

VIM OLE - how fast can messages be sent to OLE server?

2009-12-14 Thread anna
I am using Vim OLE for my implementation. Sometimes, I have to send a large number of messages to OLE server (using SendKeys method), and I can't afford to avoid that. I find that among these messages, some messages are dropped randomly (or at least I haven't found the pattern yet). My questions ar

Mapping special char

2009-12-14 Thread Torsten Andre
Hello, I'd like to map vim's command for ctags' jump to definition to a new key, though I'm having some trouble with it. Before that vim shall split the window. I tried the following: map :sp , map :sp > but both of them don't seem to work. If I write :> the correct string is formed, thoug

Re: Using substitute command or global cmd to analyse a whole file

2009-12-14 Thread Christian Brabandt
Hi epanda! On So, 13 Dez 2009, epanda wrote: > I have done a func that I call on that way : > > :%s/myPattern/\=MY_FUNC(submatch(4),submatch(5),submatch(3),submatch > (2))/ > > > > I would like to not substitute the pattern, just analyse each line. I think, this should work: Define your func

Re: Using substitute command or global cmd to analyse a whole file

2009-12-14 Thread epanda
> Hi, > > epanda schrieb: > > > Hi, > > > I have done a func that I call on that way : > > > :%s/myPattern/\=MY_FUNC(submatch(4),submatch(5),submatch(3),submatch > > (2))/ > > > I would like to not substitute the pattern, just analyse each line. > > Thanks > > add \zs at the end of the search patte

Pb of indent

2009-12-14 Thread epanda
Hi, I have this kind of text. a/Dddd: "P/TTT/M",\ "PPP/T/MS",\ "PPP/T/MS" I would like to indent from the second to the last line in order to have this result : a/Dd