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

Strange output on css #131

Closed jbelmont closed 11 years ago

jbelmont commented 11 years ago

I have let delimitMate_jump_expansion = 1 turned on my vimrc and this happens only when I on a css file. For instance on a css definition like so:

#rss-desc {
  text-align: right;
  font-size: smaller; // as soon as I press } to jump to closing curly brace I get this
  on the right hand side :exec "normal! \<CR>a"
}

How can I prevent this from happening. For now how I go about solving this is by just pressing a space before I jump to next curly brace, and then it jumps to right curly brace no problem, but if I don't press a space then I get this output everytime.

Note that I do not get this output on definitions such as these on a css files.

a {
  text-decoration: underline;
  color: Black; // when I press right curly brace it goes to the end as usual of right curly brace
}

these definitions work fine.

Raimondi commented 11 years ago

I can't reproduce this. Try running Vim with the following command from delimitMate's repo dir:

vim -N -u test/_setup.vim

and see if you can reproduce it. You'll need to enable filetype, syntax, etc. by hand.

jbelmont commented 11 years ago

I ran this command and was not able to reproduce the behavior but with this command I was not able to have syntax highlighting or delimitMate enabled. It just appeared that vim was loaded with no plugins at all. One comment I would like to make is that I noticed that in css that this behavior was flaky at best because I did have times that other css elements such as: a { text-decoration: underline; color: Black; // :exec "normal! a" } gave me this output, so perhaps it has to do with my configuration rather than delimitMate. Anyways this is not a big deal at all, I can just enter a space in between jumping to braces to avoid the explained behavior. This is a wonderful plugin all in all, no need to gripe about little things such as this.

Raimondi commented 11 years ago

Reopen this issue if you find out what's causing it or find it too disrupting of your workflow.

Thanks!