I have been using the Sublime editor and is making a switch to vim (Because I have to) . I have heard that Vim is the best editor there is, if you can master all the shortcuts. Given below are some of my needs. Please tell me which shortcut/plug-in I should use to achieve them.
- Switch-case statement in C : I need like 10 cases. So How can I add them quickly? Is there something like
case n:10+
? - Curly Bracket completion : I need an auto closing curly bracket
}
. Same need with parenthesis. - In CSS : Code completion for properties.
- Code shrink option : In Sublime u could shrink the code present in a block (like a function or loop) by pressing an
>
like symbol to the left of line number. Is this possible in Vim? - Any other shortcut / plug-in that programmer ( C, C++, php, CSS, HTML ) can use to increase his/her productivity.
Any help is appreciated.