Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto insert a closing brace putting the cursor between the braces in Vim

Tags:

vim

plugins

I have found some threads on this but they are three years old. Does anyone have a plugin to recommend for Vim, so that when I type {, it will do:

{
::cursor here::
}

Another helpful thing would be to have

if(::cursor here::)

after typing if.

like image 860
stormist Avatar asked Feb 28 '23 17:02

stormist


1 Answers

I use delimiteMate.vim. It handles this in a configurable and non annoying way.

like image 184
Randy Morris Avatar answered Apr 29 '23 06:04

Randy Morris