Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 117 forks source link

Backspacing breaks delimitmate #98

Closed Telling closed 12 years ago

Telling commented 12 years ago

After pulling the latest comits as of the 15th of April, whenever i try to delete anything (using backspace in a .tex document) i get the following errors:

Error detected while processing function delimitMate#BS:
line   15:
E121: Undefined variable: b:_l_delimitMate_eol_marker
Press ENTER or type command to continue
Error detected while processing function delimitMate#BS:
line   15:
E116: Invalid arguments for function escape(b:_l_delimitMate_eol_marker, '\*.^$') . '$'
Press ENTER or type command to continue
Error detected while processing function delimitMate#BS:
line   15:
E15: Invalid expression: '\m\C\%(' . join(b:_l_delimitMate_right_delims, '\|') . '\)' . escape(b:_l_delimitMate_eol_marker, '\*.^$') . '$'
Press ENTER or type command to continue
Error detected while processing function delimitMate#BS:
line   20:
E121: Undefined variable: tail_re
Press ENTER or type command to continue
Error detected while processing function delimitMate#BS:
line   20:
E15: Invalid expression: buffer_tail =~ tail_re && search('\%#'.tail_re, 'cWn')     
Raimondi commented 12 years ago

I cannot reproduce this issue. Try running Vim like this (put the right path to delilmitMate) and let me know if the problem persists. If it does, paste the output of :DelimitMateTest.

vim -N -u NONE -i NONE -c 'filetype plugin on' -c 'so path/to/delimitMate/autoload/delimitMate.vim|so path/to/delimitMate/plugin/delimitMate.vim'
Telling commented 12 years ago

Seems like a reboot of my machine (and therefore MacVim) solved the problem. Sorry to have wasted your time.

Raimondi commented 12 years ago

Glad it's working now.

Cheers!