A.J.Mechelynck wrote: > Ken YANG wrote: >> hi all, >> >> when i am programming, i often want to the "bracket automatic >> completion" function, i.e. when you input left bracket, vim will >> add another(right) bracket for you automatically, and move the >> cursor into the middle of bracket automatically. >> >> as we know, gedit has this kind of plugin, i wonder whether >> vim has this scripts? >> >> i search vim site, but can not find something useful, is there >> something i missing? >> >> thanks in advance >> > > This question was asked last week in this very mailing list: it helps to > search the archives. > > You may define the following mappings (example, for C): > > inoremap ( ()<Left> > inoremap [ []<Left> > inoremap { {<CR>}<Up><End> > > No need for a fancy plugin. >
thank you, sorry for asking before searching mails archive > > Best regards, > Tony.