i'm quite sure there's a way to do this in vi but unfortunately I don't remember how. It seems to me that Dave Mielke told me or somebody on a list how to do this at one point but it's been years ago so I could be wrong. -- Cheryl "Where your treasure is, there will your heart be also."