I would do:
inoremap <Tab> <Esc>/[\])}$]<CR>a
This mapping:
- Switch to Normal mode
<Esc>
- Search for a closing brace (
)
,}
,]
) or a$
/[\])}$]
- Switch back to insert mode
a
I would do:
inoremap <Tab> <Esc>/[\])}$]<CR>a
This mapping:
<Esc>
)
, }
, ]
) or a $
/[\])}$]
a