You can also ctrl-v, which will prevent the , map.

On Thu, 29 Jun 2006, Zhang Le wrote:

Hi,
  Most of time I want a space after a comma, so I use "imap , , "
  The problem is, sometime I do not want a comma inside square
brackets in some programming language such python and matlab:
   a[10,:] or a(10,:)

   Is there a way to not insert a space based on context around the
cursor so that if the text before cursor is [xxx, or (xxx, no space
will be inserted?
Any tips?
Zhang Le


--

.

Reply via email to