tags:

views:

130

answers:

1

I have a list of abbreviations,

iab uppercase UPPERCASE
iab lowercase LOWERCASE

(case specific issues).

I'm trying to make them not work in comment areas (i.e. in lines which start with a certain character), because they mess up my normal comment text. Has anyone any ideas how to accomplish this ?

+5  A: 

You'll have to test the context. I've already written a few functions to help define such abbreviations:

inoreab uppercase <c-r>=MapNoContext('uppercase', 'UPPERCASE')<cr>
Luc Hermitte
Precisely what I was looking for. Very useful indeed. Thank you.
ldigas