I use rails.vim and surround.vim plugins to insert <% -%> tags as explained in this topic How do I insert ERB-tags with Vim?.
How can i remove dash sign from this little “template”, because it no longer needed in rails 3?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hop over to
rails.vim:mvim ~/.vim/autoload/rails.vimand remove hyphen in the following line:
call self.setvar('surround_45', "<% \r -%>")Now
yss-will wrap code in line with<% %>.You will probably want to do the same with the
end-shortcuts — see this diff for the details (it was commited two days ago).