inoremap tips/examples (Was Re: add c/c++ snippets)

2007-03-07 Thread Eric Leenman
Hi, Triggered by the video presentation of Bram by making a iabbreviation or inoremaps of things you type often in combination with the reply of Gavin, would you like to share some of your inoremap mappings? Some like Gavin send? Plain and simple and very effective. [...] inoremap [ [] inorem

Re: add c/c++ snippets

2007-02-23 Thread hermitte
Hello, Alexey Vakhov <[EMAIL PROTECTED]> wrote: > I want to add simple code snippets. For example if I press { I > want to extend this to > { > <--- cursor > } > How can I make this by simplest way? The simpliest way ? Well, it probably consists in using one of the numerous c or C++ ftplugins o

Re: add c/c++ snippets

2007-02-23 Thread Marc Weber
On Fri, Feb 23, 2007 at 11:36:40AM +0300, Alexey Vakhov wrote: > I mean If I press enter end next press { system should to understand > that it is new block and add right bracket also. But if I press Enter > and start line with another symbol system should do nothing. Thanks > for :inoremap tip. It

Re: add c/c++ snippets

2007-02-23 Thread Alexey Vakhov
I mean If I press enter end next press { system should to understand that it is new block and add right bracket also. But if I press Enter and start line with another symbol system should do nothing. Thanks for :inoremap tip. It's useful ) 2007/2/23, Gavin Gilmour <[EMAIL PROTECTED]>: Hi, I assu

Re: add c/c++ snippets

2007-02-23 Thread Gavin Gilmour
Hi, I assume that you mean {? If so, I have a bunch of mappings that do just this: inoremap { {}O With some bonus ones that you may either like or find incredibly annoying: inoremap [ [] inoremap ( () inoremap " "" inoremap ' '' I'm undecided on the latter! Cheers, Gavin. On Fri, Feb 23, 20

add c/c++ snippets

2007-02-22 Thread Alexey Vakhov
Hi All, I want to add simple code snippets. For example if I press { I want to extend this to { <--- cursor } How can I make this by simplest way? Thanks. -- Alexey Vakhov mailto:[EMAIL PROTECTED]