vim-multiple-cursors icon indicating copy to clipboard operation
vim-multiple-cursors copied to clipboard

seems to freeze when going to insert mode

Open 1ak31sha opened this issue 8 years ago • 14 comments

i use to select a few lines, then press i to insert at all those locations, but it seems to freeze, i tried pressing all buttons, i have to quit the terminal. Am i doing it right? - maybe im missing the key to press?

macOS 10.13.3 neovim 0.2.2

1ak31sha avatar Apr 08 '18 18:04 1ak31sha

Could not reproduce the issue. Could you please provide us with:

  • the minimal init.vim to reproduce the bug
  • the keys to press to reproduce the bug

Thanks in advance!

antoinemadec avatar Apr 08 '18 20:04 antoinemadec

i tested this minimal init.vim (ran :PlugClean too): call plug#begin('~/.config/nvim/plugged') Plug 'terryma/vim-multiple-cursors' call plug#end()

i was still able to get the error. it seems to happen more on larger files(250 lines) or when many cursors are created, such as around 10. (it also got it to work, using new files and <3 cursors) keys to press:

  • esc
  • v
  • l (move one space to highlight a pattern)
  • C-n (times 10)
  • i . it freezes here

thanks!!

1ak31sha avatar Apr 08 '18 23:04 1ak31sha

You never press <C-n> ?

On Sun, Apr 8, 2018, 4:10 PM Lakeisha [email protected] wrote:

i tested this minimal init.vim (ran :PlugClean too): call plug#begin('~/.config/nvim/plugged') Plug 'terryma/vim-multiple-cursors' call plug#end()

i was still able to get the error. it seems to happen more on larger files(250 lines) or when many cursors are created, such as around 10. keys to press:

  • esc
  • v
  • l (move one space to highlight a pattern)
    • 10
  • i . it freezes here

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/terryma/vim-multiple-cursors/issues/263#issuecomment-379590394, or mute the thread https://github.com/notifications/unsubscribe-auth/AKVDAjmy6LD5c3ZcKxbOnHoSCwM2JA-Kks5tmpjogaJpZM4TLptG .

antoinemadec avatar Apr 08 '18 23:04 antoinemadec

yes i press C-n 10 times, i took the angle brackets away from that part of my comment, github was not rendering the text.

1ak31sha avatar Apr 08 '18 23:04 1ak31sha

@1ak31sha I was still not able to reproduce. My setup:

Btw, please note that -after pressing <C-n> a couple of times- i won't go to insert mode, but I will.
Indeed, when invoking vim-multiple-cursors by selecting a pattern, you switch to Visual mode, not Normal mode. You can refer to the README or the vim help :help vim-multiple-cursors

If that did not fix your issue and you think there is a real bug, please:

  • make sure to be up to date
  • provide me with the exact file and the exact pattern that trigger the bug

Thanks in advance :smile:

antoinemadec avatar Apr 09 '18 17:04 antoinemadec

shift-i seems to be working!! thanks so much!!!

1ak31sha avatar Apr 09 '18 18:04 1ak31sha

Thank you 1ak31sha. I am having the same problem and your workaround worked.

rickdps avatar Sep 08 '18 18:09 rickdps

I also have this problem, and while Shift-I does work, but if I accidentally press i vim freezes completely and I must close my terminal. For that reason I cannot use this plugin with the risk of losing work in any unsaved buffers when I must kill the terminal to recover. A minimal recipe is:

<A-n> i

(vim is now completely frozen).

mfiano avatar Aug 22 '19 11:08 mfiano

Vim freezes completely when I press i, something to prevent this?

wasnio avatar Sep 25 '19 17:09 wasnio

I have the same problem described by @mfiano should this issue not be reopened? I cannot use this plugin with the risk pressing i causes.

tbhockey avatar Nov 08 '19 16:11 tbhockey

@tbhockey no need to reopen this. I updated the FAQ: https://github.com/terryma/vim-multiple-cursors#faq

Just pressing shift-i after you pressed i, exactly like in visual mode. That should do it.

antoinemadec avatar Nov 09 '19 19:11 antoinemadec

That definitely clears things up, thanks!

tbhockey avatar Nov 09 '19 19:11 tbhockey

Nice tips from you guys here. However, my issue right about now is when I press (for an opening bracket/parentheses "(" ), vim freezes completely, which closing my terminal would only be an alternative solution to continue my work but by doing so, I often loose a lot of work. Any ideas please?

gcorrel avatar Nov 30 '19 00:11 gcorrel

If somebody happen to have frozen vim (I use neovim but I guess it's the same kind of bug) you can press and it should unfreeze, you may be left with bugged highlight but then just press and you are good.

Qizot avatar Jul 03 '20 10:07 Qizot