I want to add some text at the beginning/end of selected block(multiple lines) in Vim.
I have the command for single line but not multiple lines:
autocmd BufEnter *.tex,*.html vmap bb :s/\%V\S.*\S\%>v/\\[ \0 \\]/<CR>
It prefixes and suffixes \[ and \] to selected line.
But I'm looking for a way to multiple lines so that I can prefix/suffix with in multiple lines.