Friday, May 2, 2008

Auto-bracketing within Vim

The AutoClose Vim script inserts matching brackets automatically. It is useful for me, since I am lazy. But what annoying me is the script runs buggy in my Linux box. When I press , it often overwrite my program with a lot of brackets!

I looked into its codes, and commented out these two lines of code:

      "inoremap <silent> <Esc> <C-R>=<SID>CloseStackPop('')<CR><Esc>
"inoremap <silent> <C-[> <C-R>=<SID>CloseStackPop('')<CR><C-[>



Now it works well! Cheers!

No comments: