[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: Simple grammar question
From:       "Antoine J. Mechelynck" <antoine.mechelynck () belgacom ! net>
Date:       2005-02-16 14:34:37
Message-ID: 421359FD.2010506 () belgacom ! net
[Download RAW message or body]

ying shi wrote:
> if getline('.')=~'{\|}'
> 
> what does it mean? Thanks.
> 
> 
> 
if the line at the cursor matches the pattern {\|}
-- in other words --
if there is at least one opening or closing brace in the current line

see
	:help getline()
	:help eval
	:help expression-syntax
	:help expr4
	:help pattern
	:help /\bar

HTH,
Tony.
	

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic