I added a few lines to my .vimrc to autoclose tags like
[]
, ""
, ''
, ()
these all work fine but somehow the autoclosing of {}
adds a space in between them and I have no idea how this comes.
"auto complete brackets
33 inoremap { {}<Esc>i
34 inoremap [ []<Esc>i
35 inoremap ( ()<Esc>i
36 inoremap " ""<Esc>i
37 inoremap ' ''<Esc>i
Anyone has an idea? Ask if you think it's handy for me to post the rest of my .vimrc
Thanks!
.vimrc
inoremap \begin{document} \begin{document}<CR>\end{document}<Esc>O
, but doesn't work. where is the error in this line?