How do I insert <% %> in Vim? I have rails.vim.
<% %>
For surroundings in the erb views you might need Tim Pope's ragtag. It can handle different erb specific surroundings. Check out the documentation.
erb