On Mar 12, 3:50 pm, Tony Mechelynck <[email protected]> wrote: > :'<,'>s/^\ze\a/c/
Bonjour Antoine, The absolute way to represent an empty string in a substitute command I was looking for is simply: \ze In effect [range]s/\ze/c does the job (including empty lines) No need to add ^ which is implicit and . which restrict the substitute to non empty lines The solution of François [range]s/^\(.*\)$/c\1/ also works. It can be simplified to [range]s/\(.*\)/c\1/ as ^ and $ are implicit in .* Best regards Jean Johner -- 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
