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. Ideas? What else should I look for? Thanks, --Chad |
Put your cursor on one of these single quote pairs and type
Code:
ga ..or do they really take up two columns? ok, do that for one of the pair. What appears in the command area (character, decimal, hex, octal)? |
they really take up two columns!
ga results in: <`> 96, Hex 60, Octal 140 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. --Chad |
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: http://vim-latex.sourceforge.net/ind...q-double-quote http://vim-latex.sourceforge.net/doc...mart-keys.html |
This is happening in both gvim and vim.
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: " LaTeX filetype plugin " Language: LaTeX (ft=tex) " Maintainer: Srinath Avadhanula " Email: srinath@eecs.berkeley.edu " URL: http://vim.sourceforge.net/scripts/s...p?script_id=93 " Last Change: 2001 Dec 9 Thanks for the help guys. --C |
All times are GMT -5. The time now is 06:19 AM. |