Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 116 forks source link

Keep inserting tabs when hitting enter #273

Open TheBabu opened 6 years ago

TheBabu commented 6 years ago

Hello!

I am used to having:

inoremap <CR> <CR>x<BS>
inoremap <cr> ~<bs><cr>

these mappings, and they basically add extra tabs when I am on a line of tabs. But since I want to use:

122 let g:delimitMate_autoclose = 1
123 let g:delimitMate_expand_cr = 1

these commands, I have to delete my <CR> mappings. Is there any way possible to have the feature that I want with delimitMate?

Thanks for any help!