I would like automating the following in my .vimrc:
:'<,'>s/ \+| \+/|/g
With something like the following but it does not work:
vmap <Leader>rt :s/ \+| \+/|/g<CR>
it seems the whitespace has to be escaped, I tried \s but there is another warning. What is the easiest solution ?