On 03/14/12 14:47, Dotan Cohen wrote:
imap
jj<Esc>?\%<c-r>=line('.')<cr>l\({}\\|\[]\\|><\\|()\\|""\\|''\\|><lt>\)?s+1<cr>i
I'd be tempted to use "<c-o>" instead of "<Esc> ... i", but I'm
glad it's working for you as you desire. I think it only matters
if you don't find a match: in the <Esc>...i version, I think you
end up in Normal mode, while the <c-o> method leaves you in
Insert mode.
Glad it meets your needs,
-tim
--
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