> map <F4> :%s/\<RET\>/RETURN/g<CR> > \:%s/\<RETI\>/RETURNI/g<CR> > \:%s/\<ADDC\>/ADDCY/g<CR> > \:%s/\<SUBC\>/SUBCY/g<CR> > > It does several S&R. > But when it doesn't find something it gives an E486: Pattern not found. > Why? > How can I make it so that it doesn't give an error when it doens't > find one of the given search items?
Just add the "e" flag to the replacement: %s/foo/bar/ge as detailed on :help :s_flags -tim --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
