vimrc-to-json icon indicating copy to clipboard operation
vimrc-to-json copied to clipboard

bug: if mapping doesn't end in one line don't convert it

Open wis opened this issue 6 years ago • 0 comments

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.

wis avatar Jun 17 '19 15:06 wis