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

125 views
Skip to first unread message

Robert Balejík

unread,
May 3, 2015, 9:00:45 AM5/3/15
to vim...@googlegroups.com
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

Eric Christopherson

unread,
May 3, 2015, 11:47:31 AM5/3/15
to vim...@googlegroups.com
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

Robert Balejík

unread,
May 9, 2015, 8:21:47 AM5/9/15
to vim...@googlegroups.com
ok so I dd not select the whole line just the text  : visual + $ , resutl the frist ERB tag was on that line but the closing was on another - so it si a bug


--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/1HYA3HCVYes/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages