Re: Going back to empty brackets and quotes

2012-06-23 Thread Dotan Cohen
On Sat, Jun 23, 2012 at 10:18 PM, Christian Brabandt wrote: > Hi Dotan! > > On Sa, 23 Jun 2012, Dotan Cohen wrote: > >> On Thu, Jun 21, 2012 at 10:40 PM, Christian Brabandt >> wrote: >> > Hi Dotan! >> > >> > On Do, 21 Jun 2012, Dotan Cohen wrote: >> > >> >> Hello, I have this terrific mapping wh

Re: Going back to empty brackets and quotes

2012-06-23 Thread Christian Brabandt
Hi Dotan! On Sa, 23 Jun 2012, Dotan Cohen wrote: > On Thu, Jun 21, 2012 at 10:40 PM, Christian Brabandt > wrote: > > Hi Dotan! > > > > On Do, 21 Jun 2012, Dotan Cohen wrote: > > > >> Hello, I have this terrific mapping which takes me back to the > >> previous empty brackets or quotes: > >> inor

Re: Going back to empty brackets and quotes

2012-06-23 Thread Dotan Cohen
On Thu, Jun 21, 2012 at 10:40 PM, Christian Brabandt wrote: > Hi Dotan! > > On Do, 21 Jun 2012, Dotan Cohen wrote: > >> Hello, I have this terrific mapping which takes me back to the >> previous empty brackets or quotes: >> inoremap jk ?\({}\\|\[]\\|<>\\|><\\|()\\|""\\|''\\|>\)?s+1 >> >> This work

Re: Going back to empty brackets and quotes

2012-06-21 Thread Christian Brabandt
Hi Dotan! On Do, 21 Jun 2012, Dotan Cohen wrote: > Hello, I have this terrific mapping which takes me back to the > previous empty brackets or quotes: > inoremap jk ?\({}\\|\[]\\|<>\\|><\\|()\\|""\\|''\\|>\)?s+1 > > This works great if there is no whitespace between the empty brackets > / quotes

Going back to empty brackets and quotes

2012-06-21 Thread Dotan Cohen
Hello, I have this terrific mapping which takes me back to the previous empty brackets or quotes: inoremap jk ?\({}\\|\[]\\|<>\\|><\\|()\\|""\\|''\\|>\)?s+1 This works great if there is no whitespace between the empty brackets / quotes, so I added the whitespace check: inoremap jk ?\({\s*}\\|\[\s*