Sunday, May 3, 2015

Re: surround vim + rails vim : ERB tags are added on the separate line

On Sun, May 03, 2015, Robert Balejík wrote:
> I use those 2 plugins so I wanna use them so I tried to put ERB tags on the line - so I visually select line do S = just as is suggested here https://stackoverflow.com/questions/4275209/how-do-i-insert-erb-tags-with-vim
> but it put ERB tags <%= %> on the sperarate line? did anyone have this problem

For me, that only happens when I have a whole line selected, as with
Vim's capital-V visual mode. I assume that's the intended behavior. When
I have text selected in non-linewise mode, it puts the beginning and end
of the tag on the same line.

(I also see there seems to be a bug that's triggered if you do a
characterwise selection on the last line in a file, up to and including
EOL.)

--
Eric Christopherson

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment