jpeters
Group: Members
Posts: 804
Joined: April 2006 |
|
Posted: Dec. 14 2007,20:33 |
|
Quote (mikshaw @ Dec. 14 2007,09:22) | Quote | I've found it difficult to correct a bug in a function when there's another copy of it pasted somewhere else in my code | I've read this a couple times, and I'm still not sure what you're saying. You're talking about vim functions? In any case, I don't understand why you would have the same function twice in the same code anyway. The whole reason behind using functions is to prevent the need for duplicate code. |
The point was that it's easy to inadvertantly push the "wrong" key during the process of coding, with unexpected results. That happened to me recently. After a half hour of trying to figure out why a simple function wouldn't work, I found a copy of it pasted way down in my code!
|