-
-
Notifications
You must be signed in to change notification settings - Fork 379
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
vim can be crashed when vim-rails and matchit are installed #128
Comments
If Vim itself is crashing, it's hard to label this as anything other than a Vim bug. Aggravated by rails.vim and matchit, perhaps, but a Vim bug nonetheless. I'm not sure how to proceed, as I've been using both plugins together happily for years. |
So can you reproduce this behavior or not? |
No. |
Also I forgot to mention that it should find Haml files. Works for me. But even if the file really doesn't exist, I can't extract a crash from it. |
Can you verify that you can't reproduce this problem with my config: |
The problem seams long gone |
Recently I experienced quite few vim crashes (unbelievable, but fact).
Today I found out where these come from.
vim-rails + matchit is deadly combination.
When both are installed, open some view that contains lines such as:
now when cursor is on render.... part, and you git "gf" to go to form_add_permission partial (which doesn't exist [In my case it exists, but I use haml, and vim-rails doesn't find it]).
At the bottom of screen you get:
now in few seconds (about 10-30) vim will crash (you can open other view/controller meanwhile, but crash is inevitable)
and virtual terminal (xterm) is corrupted (at least this time): when I try to select something with mouse or simply click with any mouse button, it types various characters.
This is probably matchit bug, but since it's triggered by vim-rails feature I report it here. Besides I've no idea if anyone is maintaining matchit.
I tried matchit that comes with vim and the one from https://github.com/mhz/vim-matchit, both crash
Misc info
OS: FreeBSD 8.2-STABLE
vim-rails: latest from git
My entire vim config: https://github.com/graudeejs/dot.vim
NOTE: crash happens in both vim and gvim
The text was updated successfully, but these errors were encountered: