I keep writing for loops today. All of them have the format :
for(size_t szI = X; szI < Y; ++szI)
{
//Something
}
And I know there are ways to record actions in vim. If X and Y can change, can I do something in vim to write a for loop once I supply X and Y somehow?
You can use a plugin like snipMate to store snippets, which you can then store a for
snippet in.
In fact, it already comes with a lot of predefined snippets, a lot of which may prove useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With