vimrc-to-json
vimrc-to-json copied to clipboard
bug: if mapping doesn't end in one line don't convert it
for example, for my .vimrc:
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
should not be converted to:
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": ["<silent>", "<expr>"],
"after": ["<TAB>"]
}
]
how I think it can be fixed:
check if the next line starts with a \, if it does skip that mapping.