Pages

Friday, April 17, 2009

vi gotcha

Here's a little gotcha that I ran into editing a MySQL cnf file on unix. I just opened it to comment out some lines, save and restart. When I attempted to restart it refused and died. So not thinking that I squished it with my ham handed edit, I emailed the SA about it. He found it. After I had commented out my lines and I went to save, I must have hit the '~' key when trying to get into escape mode (its right next to the escape key). The '~' in vi capitalizes the next letter after the cursor.

No comments:

Post a Comment