Vim freezes on first line comment
See original GitHub issueIssue
Vim freezes when typing a comment on the first line of the file. Here “freezes” means that it becomes impossible to exit insert mode nor can anything be inserted. This only happens when entering a comment on the first line of the edited Python file. This isn’t about ctrl-s 😃
Steps to reproduce
To perform the tests I created a clean environment as follows:
- vagrant init bento/ubuntu-16.04
- vagrant up
- vagrant ssh
- sudo apt install git vim-nox curl
- download vim-plug: curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- setup vim-plug (.vimrc contents below)
- run :PlugInstall in vim to install jedi-vim
- quit vim before running the tests
Contents of .vimrc
call plug#begin('~/.vim/plugged')
Plug 'davidhalter/jedi-vim'
call plug#end()
The following tests were performed and all of them begin by opening the empty test file test.py and entering insert mode:
- type “#dead<enter><esc>” => Vim is frozen and in insert mode, cursor on second line
- type “#dead<enter><esc>” really fast => Vim exits insert mode and is not frozen
- type “carl<enter>#david<enter><esc>” => Vim exits insert mode and is not frozen
- type “#<esc>” => Vim exits insert mode and is not frozen
- type “#<enter>” => Vim is in insert mode and is frozen
- type “#carl<esc>a david<esc>” => Vim is in insert mode and is frozen
Versions
- jedi-vim: 682f37792d830bb3211df40e049e992db26e4ec0
- Vim: 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
- Python: 3.5.2
- Vim-plug: e3252aae2c9fa6d5ab9bbd3dfe149f35573f4773
Output of the “JediDebugInfo” command (in a Python buffer)
Jedi-vim debug information
Using Python version: 3
- sys.version: 3.5.2 (default, Nov 17 2016, 17:05:23), [GCC 5.4.0 20160609]
- site module: /usr/lib/python3.5/site.py Jedi path: /home/vagrant/.vim/plugged/jedi-vim/jedi/jedi/init.py
- version: 0.10.0
- sys_path:
- /home/vagrant/.vim/plugged/jedi-vim
- /usr/lib/python35.zip
- /usr/lib/python3.5
- /usr/lib/python3.5/plat-x86_64-linux-gnu
- /usr/lib/python3.5/lib-dynload
- /usr/local/lib/python3.5/dist-packages
- /usr/lib/python3/dist-packages
- vim_path jedi-vim git version: 682f377 jedi git submodule status: 70200861661a921016563717487c1ced9993acdb jedi (v0.10.0)
Settings
omnifunc=
completeopt=menuone,longest,preview
Last set from ~/.vim/plugged/jedi-vim/plugin/jedi.vim
Output of the “messages” Vim command
No output other than “Messages maintainer: Bram Moolenaar Bram@vim.org”.
Output of “scriptnames” Vim command
1: /usr/share/vim/vimrc
2: /usr/share/vim/vim74/debian.vim
3: /usr/share/vim/vim74/syntax/syntax.vim
4: /usr/share/vim/vim74/syntax/synload.vim
5: /usr/share/vim/vim74/syntax/syncolor.vim
6: /usr/share/vim/vim74/filetype.vim
7: ~/.vimrc
8: ~/.vim/autoload/plug.vim
9: /usr/share/vim/vim74/ftoff.vim
10: /usr/share/vim/vim74/ftplugin.vim
11: /usr/share/vim/vim74/indent.vim
12: ~/.vim/plugged/jedi-vim/plugin/jedi.vim
13: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
14: /usr/share/vim/vim74/plugin/gzip.vim
15: /usr/share/vim/vim74/plugin/logiPat.vim
16: /usr/share/vim/vim74/plugin/matchparen.vim
17: /usr/share/vim/vim74/plugin/netrwPlugin.vim
18: /usr/share/vim/vim74/plugin/rrhelper.vim
19: /usr/share/vim/vim74/plugin/spellfile.vim
20: /usr/share/vim/vim74/plugin/tarPlugin.vim
21: /usr/share/vim/vim74/plugin/tohtml.vim
22: /usr/share/vim/vim74/plugin/vimballPlugin.vim
23: /usr/share/vim/vim74/plugin/zipPlugin.vim
24: ~/.vim/plugged/jedi-vim/autoload/jedi.vim
Issue Analytics
- State:
- Created 7 years ago
- Reactions:12
- Comments:19 (3 by maintainers)
Top Results From Across the Web
Why is vim frozen? - Unix & Linux Stack Exchange
I've been having occasional Vim freezes. While searching for an answer just now, it unfroze itself and a CoC error popped up.
Read more >How to determine the reason vim freezes - Stack Overflow
When a freeze occurs, quit Vim and inspect the last lines of the log to see what Vim was doing, or monitor the...
Read more >Vim freezing on write : r/vim - Reddit
I'm experiencing odd behavior with vim on my linux destop PC. When I save a file using :w my cursor is frozen in...
Read more >Vim hangs on one specific file? - Server Fault
Try using vi instead on the same file. This would be an easy way to determine if it's an issue with the program,...
Read more >Vim Stuck In Insert Mode - linux - Super User
Try using Ctrl-[ instead of Esc . What is the result of: python -c "print ord(raw_input('char '))". when you press Esc and Enter...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m on it. Didn’t really have time/motivation to look at the issues. I have had 10 issues open that I want to quickly look at. I have already fixed 3. I hope to be able to push it this week.
Should be fixed by now.