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

Inserting the double-quotes hangs vim completely #304

Open VasoVV opened 2 years ago

VasoVV commented 2 years ago

When pressing the double-quotes key in edit mode, vim starts eating 100% CPU and stops responding.

How to reproduce

Installation info:

Raimondi commented 2 years ago

Could you paste the output of :DelimitMateTest?

VasoVV commented 2 years ago
vim -c 'execute "DelimitMateTest"'

i  )            @<Plug>delimitMate)
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 301
i  }            @<Plug>delimitMate}
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 301
i  ]            @<Plug>delimitMate]
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 301
i  (            @<Plug>delimitMate(
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 291
i  {            @<Plug>delimitMate{
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 291
i  [            @<Plug>delimitMate[
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 291
i  "            @<Plug>delimitMate"
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 313
i  '            @<Plug>delimitMate'
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 313
i  `            @<Plug>delimitMate`
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 313
i  <BS>         @<Plug>delimitMateBS
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 330
i  <S-BS>       @<Plug>delimitMateS-BS
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 339
i  <S-Tab>      @<Plug>delimitMateS-Tab
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 354
i  <C-G>g       @<Plug>delimitMateJumpMany
        Last set from ~/.vim/pack/coding/start/delimitMate/plugin/delimitMate.vim line 359

that's also hangs vim

Raimondi commented 2 years ago

I was thinking that the mappings were being modified, but they seem fine. My guess now is another plugin is messing things up. There is a minimal vimrc in delimitMate's test dir, so you could use to test your setup. Run vim like this:

vim -u /path/to/delimitMate/test/_setup.vim

if you see the problem there, then the problem is most likely in delimitmate. If you don't, you could activate your other plugins there or deactivate them in your vimrc and try to pinpoint the origin.

VasoVV commented 2 years ago

This is my first plugin ))

vim -u /path/to/delimitMate/test/_setup.vim doesn't close parenthesis and has strange behaviour like printing A B C D when pressing arrow keys.

VasoVV commented 2 years ago

okay, I've figured it out I use a langmap that makes vim keybinding work in Cyrillic keyboard layout also:

set langmap=!\\"№\\;%?*ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;!@#$%&*`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\\"ZXCVBNM<>

Is it possible to make delimitMate ignore this mapping?