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.


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
235. You start naming your kids Fortran, COBOL, Algol, and Pascal.

Reply via email to