This is a feature I miss from Textmate. When you type out a def, if, block, etc. and hit enter, the editor automatically appends "end" to the code block and puts the cursor in between.
How do I set this up in vim?
Thanks!
There is a plugin that does just that: endwise.vim.
Two vim plugins come to mind that get a lot of recommendations:
I'll also recommend the Surround and Align plugins as being really useful. And, I just just started working with Command-T and it looks useful too.
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