Thibaut wrote: > I am trying to do a substitution where the pattern is the > text a visually selected before.
I think you have an answer, but the really useful procedure is to use the tip I recently mentioned: http://vim.wikia.com/wiki/Search_for_visually_selected_text Standard procedure: - Select some text. - Press * to search for it (uses above tip). - If wanted, do a substitute like this: :s//new text/g Notice that the pattern is blank. That means the last search pattern is used. John -- 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