These mappings work to put '\ ' at the start of the current line. nmap <silent> <F5> :s/^/\\ /e<cr> imap <F5> <c-o><F5>
visually select 4 lines This vmap works, puts '\ ' at start of each line. vmap <F5> :s/^/\\ /e<cr>gv visually select 4 lines This vmap does NOT work. How to make it work? vmap <F5> <F5>gv " ============================================================== These mappings all work. let sr5='s/^/\\ /e' nmap <silent> <F5> :<c-r>=sr5<cr><cr> imap <silent> <F5> <c-o>:<c-r>=sr5<cr><cr> vmap <silent> <F5> :<c-r>=sr5<cr><cr>gv -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
