Re: bracket completion

2007-04-04 Thread A.J.Mechelynck
Greg Fitzgerald wrote: On Tue, Apr 03, 2007 at 04:51:46PM -0400, Karl Guertin wrote: On 4/3/07, Panos Laganakos [EMAIL PROTECTED] wrote: Although, I'd prefer if I could use tab to move outside, instead of the corresponding closing bracket char. This should be fairly simple to add. I won't

Re: bracket completion

2007-04-04 Thread Greg Fitzgerald
On Wed, Apr 04, 2007 at 07:14:11PM +0200, A.J.Mechelynck wrote: Greg Fitzgerald wrote: On Tue, Apr 03, 2007 at 04:51:46PM -0400, Karl Guertin wrote: On 4/3/07, Panos Laganakos [EMAIL PROTECTED] wrote: Although, I'd prefer if I could use tab to move outside, instead of the corresponding

Re: bracket completion

2007-04-04 Thread A.J.Mechelynck
Greg Fitzgerald wrote: [...] I did some more termcap tests as well as on other systems, this time FreeBSD. Still the same issue. So i'm starting to wondering if it's really termcap if 3 linux boxes, openbsd, and freebsd are having the same problem. Although if i am in console with term set to

RE: bracket completion

2007-04-04 Thread Waters, Bill
To: Greg Fitzgerald; A.J.Mechelynck Cc: vim@vim.org Subject: RE: bracket completion Can you provide and example of how to do this? Thanks, Bill :inoremap { {CR}UpEnd :inoremap [ []Left :inoremap ( ()Left I'll just add a statment enabling this for certain languages. This has also

Re: bracket completion

2007-04-04 Thread Karl Guertin
On 4/4/07, Waters, Bill [EMAIL PROTECTED] wrote: Can someone provide an example of how to enable this for a certain language? I assume that it is a condition around the remap in your vimrc?? The easiest way to do language-specific customizations is to create language.vim in your

Re: bracket completion

2007-04-04 Thread Winfred Lu
2007/4/3, Charles E Campbell Jr [EMAIL PROTECTED]: Here's one: http://vim.sourceforge.net/scripts/script.php?script_id=1269 It is very useful, thank you.

Re: bracket completion

2007-04-03 Thread hermitte
shawn bright [EMAIL PROTECTED] wrote: i got the main functionality working, pretty much. I only really desire the bracket matching, and so far, i am really pleased. They all work except the [] . So i think maybe there is a conflict with another plugin ( i have the snippets-Emu, supertabs, and

Re: bracket completion

2007-04-03 Thread Karl Guertin
On 3/31/07, Greg Fitzgerald [EMAIL PROTECTED] wrote: Anyone know of a way to achieve bracket completion? I've been sitting on a plugin that does this for a month or so. The main difference between my plugin and the rest of the options here is that I do the completion without breaking history

Re: bracket completion

2007-04-03 Thread Silent1
, Greg Fitzgerald [EMAIL PROTECTED] wrote: Anyone know of a way to achieve bracket completion? I've been sitting on a plugin that does this for a month or so. The main difference between my plugin and the rest of the options here is that I do the completion without breaking history or repeat. Freshly

Re: bracket completion

2007-04-03 Thread Karl Guertin
On 4/3/07, Silent1 [EMAIL PROTECTED] wrote: where | is the cursor position. Is there any option to change this or am i doing something wrong? Sorry, no. I'll probably add support for {{ doing that, which was the plan, but I never got around to it. Maybe this afternoon.

Re: bracket completion

2007-04-03 Thread Charles E Campbell Jr
Panos Laganakos wrote: One thing that would also be great, was if you were able to tab your way out of it, ie move to the outside of the bracket, once you're done. Now you need to either press right, to move ahead (which is not quite vim-ish), or hit escape and Shift_A, to resume editing. Only

RE: bracket completion

2007-04-03 Thread David Fishburn
-Original Message- From: Karl Guertin [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 6:42 AM To: vim@vim.org Subject: Re: bracket completion On 3/31/07, Greg Fitzgerald [EMAIL PROTECTED] wrote: Anyone know of a way to achieve bracket completion? I've been sitting

Re: bracket completion

2007-04-03 Thread Panos Laganakos
- From: Karl Guertin [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 6:42 AM To: vim@vim.org Subject: Re: bracket completion On 3/31/07, Greg Fitzgerald [EMAIL PROTECTED] wrote: Anyone know of a way to achieve bracket completion? I've been sitting on a plugin that does

Re: bracket completion

2007-04-03 Thread Jonas Persson
/31/07, Greg Fitzgerald [EMAIL PROTECTED] wrote: Anyone know of a way to achieve bracket completion? I've been sitting on a plugin that does this for a month or so. The main difference between my plugin and the rest of the options here is that I do the completion without breaking history or repeat

Re: bracket completion

2007-04-03 Thread Karl Guertin
On 4/3/07, Panos Laganakos [EMAIL PROTECTED] wrote: Although, I'd prefer if I could use tab to move outside, instead of the corresponding closing bracket char. This should be fairly simple to add. I won't map it, but I'll set up a Plug for you. On 4/3/07, Jonas Persson [EMAIL PROTECTED]

Re: bracket completion

2007-04-03 Thread Greg Fitzgerald
On Tue, Apr 03, 2007 at 04:51:46PM -0400, Karl Guertin wrote: On 4/3/07, Panos Laganakos [EMAIL PROTECTED] wrote: Although, I'd prefer if I could use tab to move outside, instead of the corresponding closing bracket char. This should be fairly simple to add. I won't map it, but I'll set up

Re: bracket completion

2007-04-02 Thread Panos Laganakos
Those are great, thanks alot :) On 4/1/07, Fritz Mehner [EMAIL PROTECTED] wrote: A.J.Mechelynck schrieb: Greg Fitzgerald wrote: Anyone know of a way to achieve bracket completion? For example if your typing a if statement, if (something) { once you type the first bracket the 2nd one

Re: bracket completion

2007-04-02 Thread shawn bright
i am finding these usefull too, thanks sk On 4/2/07, Panos Laganakos [EMAIL PROTECTED] wrote: Those are great, thanks alot :) On 4/1/07, Fritz Mehner [EMAIL PROTECTED] wrote: A.J.Mechelynck schrieb: Greg Fitzgerald wrote: Anyone know of a way to achieve bracket completion? For example

Re: bracket completion

2007-04-02 Thread Greg Matheson
On Mon, 02 Apr 2007, shawn bright wrote: i am finding these usefull too, thanks Check out Luc Hermitte's development of Stephen Riehm's bracketing macros. http://hermitte.free.fr/vim/settings.php#settings -- Greg MathesonI have an elaborate mnemonic for

Re: bracket completion

2007-04-02 Thread shawn bright
this looks like exactly what i am after. i am kind of a newbie here, and cant quite get it to work right. i believe that i need a python.vim file in /ftplugin directory. but i dont know how to word it to make this plugin work, could anyone kinda help me here, i can't make out what i should do

RE: bracket completion

2007-04-02 Thread Waters, Bill
Can you provide and example of how to do this? Thanks, Bill :inoremap { {CR}UpEnd :inoremap [ []Left :inoremap ( ()Left I'll just add a statment enabling this for certain languages. This has also giving me a couple new ideas to play with. Thanks again. :) --Greg

Re: bracket completion

2007-04-02 Thread A.J.Mechelynck
Zarko Coklin wrote: It is hard to expand on Tony's feedback, ever. Still, I found the following works a bit better. Not only that it creates a right brace but it also places a cursor on the right spot (taking into consideration indentation if you set it). :inoremap { {CR}UpCREnd :inoremap [

Re: bracket completion

2007-04-02 Thread Luc Hermitte
Hello, * On Mon, Apr 02, 2007 at 10:38:14AM -0500, shawn bright [EMAIL PROTECTED] wrote: Check out Luc Hermitte's development of Stephen Riehm's bracketing macros. http://hermitte.free.fr/vim/settings.php#settings On 4/2/07, shawn bright [EMAIL PROTECTED] wrote: this looks like

Re: bracket completion

2007-04-02 Thread Panos Laganakos
One thing that would also be great, was if you were able to tab your way out of it, ie move to the outside of the bracket, once you're done. Now you need to either press right, to move ahead (which is not quite vim-ish), or hit escape and Shift_A, to resume editing. Only possible way I can think

Re: bracket completion

2007-04-02 Thread Luc Hermitte
* On Tue, Apr 03, 2007 at 02:14:59AM +0300, Panos Laganakos [EMAIL PROTECTED] wrote: One thing that would also be great, was if you were able to tab your way out of it, ie move to the outside of the bracket, once you're done. Now you need to either press right, to move ahead (which is not

Re: bracket completion

2007-04-02 Thread shawn bright
Thanks Luc, i got the main functionality working, pretty much. I only really desire the bracket matching, and so far, i am really pleased. They all work except the [] . So i think maybe there is a conflict with another plugin ( i have the snippets-Emu, supertabs, and taglist plugins also. ) The

Re: bracket completion

2007-04-01 Thread Fritz Mehner
A.J.Mechelynck schrieb: Greg Fitzgerald wrote: Anyone know of a way to achieve bracket completion? For example if your typing a if statement, if (something) { once you type the first bracket the 2nd one is inserted below for you. Scribes and a few other editors have this functionality

bracket completion

2007-03-31 Thread Greg Fitzgerald
Anyone know of a way to achieve bracket completion? For example if your typing a if statement, if (something) { once you type the first bracket the 2nd one is inserted below for you. Scribes and a few other editors have this functionality and was hoping to achieve it with Vim. Another thing

Re: bracket completion

2007-03-31 Thread A.J.Mechelynck
Greg Fitzgerald wrote: Anyone know of a way to achieve bracket completion? For example if your typing a if statement, if (something) { once you type the first bracket the 2nd one is inserted below for you. Scribes and a few other editors have this functionality and was hoping to achieve

Re: bracket completion

2007-03-31 Thread A.J.Mechelynck
A.J.Mechelynck wrote: Greg Fitzgerald wrote: Anyone know of a way to achieve bracket completion? For example if your typing a if statement, if (something) { once you type the first bracket the 2nd one is inserted below for you. Scribes and a few other editors have this functionality

Re: bracket completion

2007-03-31 Thread Greg Fitzgerald
On Sun, Apr 01, 2007 at 06:01:34AM +0200, A.J.Mechelynck wrote: A.J.Mechelynck wrote: Greg Fitzgerald wrote: Anyone know of a way to achieve bracket completion? For example if your typing a if statement, if (something) { once you type the first bracket the 2nd one is inserted below