Advanced vim auto-completion

2010-02-11 Thread Aman Jain
Hi I am trying to build a lexical analyzer using flex. Following is a line which shows a regular expression and its corresponding action. [0-9] {printf(yada yada \n);} //regex1 Is there a way to reuse {printf(yada yada \n);} from regex1 by auto- completion features of vim, so that I don't need

Re: how to get stdout redirected as a stream for interactive scripts?

2010-02-11 Thread bill lam
mer, 10 Feb 2010, George Oliver skribis: On Feb 10, 9:29 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: There are a few games that come with Vim but they are not really interactive. Yet it is possible to do some things in Vim interactively. Thanks Tony. Sorry if I confused

Re: Print via vim

2010-02-11 Thread Joan Miquel Torres Rigo
2010/2/11 Anand V Looks like the only way out is to cut the file into different smaller files (as suggested by sc) and take printouts separately and then look at them placed in order.Too much work :) For one-time printings, other option (to avoid creation garbage files) is to select

Re: Advanced vim auto-completion

2010-02-11 Thread Marc Weber
Excerpts from Aman Jain's message of Thu Feb 11 09:30:47 +0100 2010: Hi I am trying to build a lexical analyzer using flex. Following is a line which shows a regular expression and its corresponding action. [0-9] {printf(yada yada \n);} //regex1 Is there a way to reuse {printf(yada yada

Re: Event to capture insert/delete in Vim

2010-02-11 Thread Bram Moolenaar
Anna Klein wrote: On Wed, Feb 10, 2010 at 5:02 AM, Christian Brabandt cbli...@256bit.orgwrote: Hi Ben! On Di, 09 Feb 2010, Ben Fritz wrote: Is there an event (or something similar to it) which captures the insertion or deletion in Vim? Or, basically, an event to notify the

Re: Advanced vim auto-completion

2010-02-11 Thread Maxim Kim
On 11 фев, 11:30, Aman Jain amanjain.nit...@gmail.com wrote: Hi I am trying to build a lexical analyzer using flex. Following is a line which shows a regular expression and its corresponding action. [0-9] {printf(yada yada \n);} //regex1 Is there a way to reuse {printf(yada yada \n);} from

Re: Print via vim

2010-02-11 Thread Matt Wozniski
On Thu, Feb 11, 2010 at 6:56 AM, Joan Miquel Torres Rigo wrote: 2010/2/11 Anand V Looks like the only way out is to cut the file into different smaller files (as suggested by sc)  and take printouts separately and then look at them placed in order.Too much work :) For one-time

Vim 7.2 Installation trouble on Linux

2010-02-11 Thread Daniel Pena
Good afternoon. I'm having some trouble installing Vim 7.2 on my Desktop (my OS is Ubuntu 9.04). When I'm compiling, I get the follow message: checking for tgetent()… configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. Or specify the name of the library

Re: Vim 7.2 Installation trouble on Linux

2010-02-11 Thread Raúl Núñez de Arenas Coronado
Saluton Daniel :) Daniel Pena d...@gmail.com skribis: checking for tgetent()… configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. Or specify the name of the library with –with-tlib. I downloaded the ncurses 5.7, but I couldn't still couldn't do

Re: Vim 7.2 Installation trouble on Linux

2010-02-11 Thread Matt Wozniski
2010/2/11 Raúl Núñez de Arenas Coronado: Saluton Daniel :) Daniel Pena d...@gmail.com skribis: checking for tgetent()… configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. Or specify the name of the library with –with-tlib. I downloaded the ncurses 5.7,

Simulate Help buffer behavior

2010-02-11 Thread Benjamin R. Haskell
If I have two windows open, and one of them is a 'help' buffer, closing the other buffer exits the program. I would like to get this same behavior with the 'Results' buffer from the dbext extension. (i.e. while editing an SQL file and running some queries from within, if I then do ':q' or

Re: Vim 7.2 Installation trouble on Linux

2010-02-11 Thread Michael Henry
On 02/11/2010 01:42 PM, Matt Wozniski wrote a very nice distro-specific hint: Or just sudo apt-get build-dep vim to get all of the dependencies needed to build the version that's in the repositories. This is my favorite mailing list. Not only can you get help with Vim, you can get help with

Re: Programming With Proportional Fonts?

2010-02-11 Thread Antony Scriven
On 10 February 2010 20:45, Spencer Collyer spen...@lasermount.plus.com wrote: On Fri, 05 Feb 2010 00:20:44 -0800, Linda A W wrote: [...] Personally I'd rather the time and effort that would be wasted adapting Vim to support proportional fonts was instead directed towards making it

au only on copen window

2010-02-11 Thread epanda
Hi I have a script that launch autocommand on cursorhold on * file : au CursorHold * call UpdateFile(g:temp_file) in UpdateFile function I do a copen botright copen 50 this work well on first cursorhold but from the second one, I would like autocommand call updatefile only if cursor is hold on

Re: Syntax highlight doesn't work for html filetype

2010-02-11 Thread Tim Johnson
* Tony Mechelynck antoine.mechely...@gmail.com [100210 18:43]: On 11/02/10 01:33, Tim Johnson wrote: I'm using version 7.2/normal/Gui on slackware 13/32-bit. I have vim runing, loaded with a session file, and then opened for editing some html files. Syntax highlighting *will not* work for the

Re: Programming With Proportional Fonts?

2010-02-11 Thread George V. Reilly
On Wed, Feb 10, 2010 at 12:45 PM, Spencer Collyer spen...@lasermount.plus.com wrote: Personally I'd rather the time and effort that would be wasted adapting Vim to support proportional fonts was instead directed towards making it even more featureful for what it is designed to do - edit text.

Text wrapping with gq is doing something really weird ...

2010-02-11 Thread Joyce Tipping
Hi guys, I've been having an odd problem with my automatic text wrapping in vim. I wrap my text with the gq command, sometimes as gqap (to wrap a paragraph), sometimes as gggqG (to wrap the whole document). I've been using vim for years and I don't recall ever having this issue. Just recently,

Re: au only on copen window

2010-02-11 Thread David Fishburn
On Thu, Feb 11, 2010 at 4:05 PM, epanda callingel...@hotmail.fr wrote: ... this work well on first cursorhold but from the second one, I would like autocommand call updatefile only if cursor is hold on copen buffer. So I have to delete the current autocommand and define another one,but I

problems using app

2010-02-11 Thread Mathew
I'm trying to use Aap but I want Python to be supported. The file config.args is empty. Here's what I did aap -f http://www.a-a-p.org/vim/main.aap CVS=no ls -l ./vim/src/config.arg -rw-r--r-- 1 myeates staff 0 Feb 11 17:21 ./vim/src/config.arg aap fetch http://www.a-a-p.org/vim/main.aap CVS=no

Re: Text wrapping with gq is doing something really weird ...

2010-02-11 Thread Ben Fritz
On Feb 11, 3:00 pm, Joyce Tipping jo...@spencertipping.com wrote: Hi guys, I've been having an odd problem with my automatic text wrapping in vim. I wrap my text with the gq command, sometimes as gqap (to wrap a paragraph), sometimes as gggqG (to wrap the whole document). I've been using

Re: Text wrapping with gq is doing something really weird ...

2010-02-11 Thread sc
On Thursday 11 February 2010 03:00:48 pm Joyce Tipping wrote: Hi guys, I've been having an odd problem with my automatic text wrapping in vim. I wrap my text with the gq command, sometimes as gqap (to wrap a paragraph), sometimes as gggqG (to wrap the whole document). I've been using

Re: Text wrapping with gq is doing something really weird ...

2010-02-11 Thread Joyce Tipping
Oops, I think I sent my last message only to Ben ... Here's a quick summary for those of you who are curious how this played out. :) Removing smartindent from my vimrc solved the problem. I looked through my files and, indeed, it only happens after a line starting with the word for. (Pretty

Re: Internet search for the current word

2010-02-11 Thread ypguo
It seems that I have found the way to search the web selected in vim, I will release it in next release. ypguo wrote: Vimtim 394 introduce a tip to check the meaning of the word under the cursor, right click mouse, and choose Dic. Either IE or mozilla will be opened and dictionary

Re: Simulate Help buffer behavior

2010-02-11 Thread Ben Schmidt
On 12/02/10 6:44 AM, Benjamin R. Haskell wrote: If I have two windows open, and one of them is a 'help' buffer, closing the other buffer exits the program. I would like to get this same behavior with the 'Results' buffer from the dbext extension. (i.e. while editing an SQL file and running

Re: Text wrapping with gq is doing something really weird ...

2010-02-11 Thread sash...@gmail.com
Hey thanks I was having the same issue. On Feb 12, 10:12 am, Ben Fritz fritzophre...@gmail.com wrote: On Feb 11, 3:00 pm, Joyce Tipping jo...@spencertipping.com wrote: Hi guys, I've been having an odd problem with my automatic text wrapping in vim. I wrap my text with the gq command,

Re: Vim 7.2 Installation trouble on Linux

2010-02-11 Thread Anthony Campbell
On 11 Feb 2010, Michael Henry wrote: On 02/11/2010 01:42 PM, Matt Wozniski wrote a very nice distro-specific hint: Or just sudo apt-get build-dep vim to get all of the dependencies needed to build the version that's in the repositories. This is my favorite mailing list. Not only can