Townk / vim-autoclose

This plugin for Vim enable an auto-close chars feature for you. For instance if you type an '(', ``autoclose`` will automatically insert a ')' and put the cursor between than.
http://townk.github.com/vim-autoclose/
503 stars 66 forks source link

Error with more than 4 double quotes on a line #1

Closed mrtazz closed 13 years ago

mrtazz commented 14 years ago

If more than 4 double quotes are present in one line, the following error occurs:

Error detected while processing function <SNR>21_CheckPair..<SNR>21_CountQuotes..<SNR>
21_RemoveQuotes:
line   25:
E684: list index out of range: 6 
anttih commented 14 years ago

I'm having the same issue. Any tips/ideas on how to fix this?

ku1ik commented 14 years ago

The same problem for me. Townk, do you have idea which commit could break it?

mattly commented 14 years ago

likewise. this is getting really annoying.

haguro commented 14 years ago

ditto.

raskchanky commented 14 years ago

I had this same problem and fixed it by removing this plugin and installing this one instead http://www.vim.org/scripts/script.php?script_id=1849

mrtazz commented 14 years ago

Works for me, too. there is also a github mirror of the script if you use submodules and pathogen.

lynndylanhurley commented 13 years ago

I'm having the same issue:

Error detected while processing function <SNR>21_CheckPair..  
<SNR>21_CountQuotes..<SNR>
21_RemoveQuotes:
line   25:
E684: list index out of range: 6 

I like this AutoClose plugin better than the other AutoClose or delimitMate, but this issue makes it un-usable for me. Any fixes yet?

ku1ik commented 13 years ago

It was the best one, indeed. But looks like Townk disappeared :(

mtvee commented 13 years ago

gah, ...this was driving me bananers... forked it and this one works for me... https://github.com/mtvee/vim-autoclose

fixes the single quote issue too

mrtazz commented 13 years ago

works great for me, too.

Thanks mtvee.

Townk commented 13 years ago

Sorry for the long hiatus, yesterday I post a fix for this issue. Thanks

mtvee commented 13 years ago

Thanks Townk! Welcome back :)