xolox / vim-notes

Easy note taking in Vim
http://peterodding.com/code/vim/notes/
1.6k stars 110 forks source link

Apostrophes are turned into curly quotes #62

Closed JonathanReeve closed 10 years ago

JonathanReeve commented 10 years ago

Apostrophes such as the ' in can't turn into curly quotes. This makes it so that a quoted string like I can't do it is highlighted as a quoted string up until the t, like this: I can't do it.

xolox commented 10 years ago

I can see how this is annoying, but I kind of like the smart / curly quotes so would want to keep them enabled. What I've now changed instead is the highlighting:

Only if the opening quote is not preceded by a "word character" and only if the closing quote is not followed by a "word character" does the highlighting apply.

Although this change has nothing to do with the title of this issue I do believe it resolves your problem. Do you agree?

xolox commented 10 years ago

I'm going to go ahead and close this issue now, given that I think I fixed the underlying problem. If your problem is not resolved please feel free to reopen this issue or open a new one. Thanks for the feedback & happy Vimming!