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

vim crashes because of conceal "f" #2

Open
FireyFly opened this issue Nov 12, 2011 · 2 comments
Open

vim crashes because of conceal "f" #2

FireyFly opened this issue Nov 12, 2011 · 2 comments

Comments

@FireyFly
Copy link

For one reason or another, vim crashes when I try to insert the "f" character functions are concealed into, or if I try to open the javascript.vim file. I assume this is not the case for you, since you presumably wrote the file in vim. :)

Can you confirm that this does not happen to you? For me, vim crashes with the following message:

Vim: Caught deadly signal FPE
Vim: Finished.

This applies to both vim and gvim.

@tyok
Copy link
Owner

tyok commented Nov 15, 2011

It didn't happen to me. Probably something about your environment? I'm using ubuntu 11.04 with manually compiled vim 7.3.

Or maybe it's with the encoding. Try running this on your console, and make sure it says utf-8 unicode:

file after/syntax/javascript.vim

And try this on your .vimrc:

set encoding=utf8
set fileencoding=utf8

@FireyFly
Copy link
Author

Hey, it looks like you're right.

I did some research.. first of all, I tried searching in "kcharselect", KDEs charmap utility, for things like "italic f", but I couldn't find anything interesting. The best hit I got was "ƒ", "latin small letter f with hook", which apparently is sometimes used as a function symbol. It's really ugly in DejaVu Sans Mono though, so I didn't want that.

Then I played around with charCodeAt for a while, but it only gave me char codes pointing to strange characters..
Then, when nothing else worked, I opened the javascript.vim file in a hex editor and checked on Wikipedia how UTF-8 works.. and after some tinkering I found the character is actually U+1D453... Lo and behold, there's actually such a character: http://www.fileformat.info/info/unicode/char/1d453/index.htm

Unfortunately, setting encoding and fileencoding to utf8 didn't help.. I'm using vim 7.3.353, installed from a binary package from Arch Linux' repos, and (g)vim still crashes. Do you have any other ideas? Perhaps I should try to manually compile vim from their dev repo.

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