On Nov 22, 12:38 pm, Dotan Cohen <[email protected]> wrote: > > Often I will end a line of code with the cursor in the middle of the > line, due to closing all parenthesis as I open them, described > here:http://dotancohen.com/howto/write_code.html >
You might be interested in: http://vim.wikia.com/wiki/Automatically_append_closing_characters It looks like you're closing all your parens and such manually, if you're really following that page's advice! BORING! ;-) Also in HTML, omni completion i_CTRL-X_CTRL-O will automatically close the current open tag you're in. I actually have the following mapping because of this: " auto-close html tags using omnicomplete inoremap <lt>/ <lt>/<C-X><C-O> Put this mapping in ~/.vim/ftplugin/html.vim and now you can type: <html></ and get: <html></html> The surround.vim plugin also has an insert-mode mapping to add pairs of surrounding characters, if you remember to do it up front. I use this mapping for XML/HTML mostly. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
