gvim - double quote char always replaced with two single quotes in special modes
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
gvim - double quote char always replaced with two single quotes in special modes
Hey all-
I feel really dumb having to ask this, but like the subject says when I'm using gvim (7.0.109) every time I type the " (double quote) character it is replaced with two ' (single quote) characters.
This happens to me when editing my .vimrc and when I'm in the latex, c++, bash scripting, and probably other modes although these are the only ones I've tried. It does NOT happen in plain text mode!
I've checked to make sure that the key isn't mapped with the :map command.
for both... not surprisingly. In the tex mode this is referred to as "smart quotes" I think, and there's a variable that you are supposed to be able set to turn it off, but I've had no luck with this. Plus, I'm not in tex mode.
vim under normal circumstances does not replace a double quote with two single quotes. I've been using vim for as long as it has been around and haven't encountered this in any file format I've used. I rarely use gvim, so there may be some setting different between our usages.
This would be some extension or plug in that is running based on the file type. See if this helps:
Thanks for the two links, but I've actually already tried that solution, and it doesn't seem to work!
I did however finally figure it out. It turns out that I had added a set of tex macros that doesn't respect the b:Tex_SmartKeyQuote and g:Tex_SmartKeyQuote flags, and infact, doesn't even respect what mode the buffer is in. For reference, this is the macro's info:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.