Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting the double-quotes hangs vim completely #304

Open
VasoVV opened this issue Jul 6, 2022 · 5 comments
Open

Inserting the double-quotes hangs vim completely #304

VasoVV opened this issue Jul 6, 2022 · 5 comments

Comments

@VasoVV
Copy link

VasoVV commented Jul 6, 2022

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

How to reproduce

  • Install the plugin.
  • Launch vim.
  • Press the double-quotes key.

Installation info:

  • vim 8.1.3741
  • Ubuntu 20.04.4 LTS
@Raimondi
Copy link
Owner

Raimondi commented Jul 6, 2022

Could you paste the output of :DelimitMateTest?

@VasoVV
Copy link
Author

VasoVV commented Jul 11, 2022

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
Copy link
Owner

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
Copy link
Author

VasoVV commented Jul 12, 2022

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
Copy link
Author

VasoVV commented Jul 12, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants