This won't work when mapped to a shortcut in my ideavimrc. I've narrowed it down to the pipe and the % symbols that are messing up the search and replace. This works when input manually:
:%s#\(\n\s\+\|\t\+\)\(/\)\(\*\+\)\n#\1\2\**********\r#g<CR>
The % simply doesn't get typed, and the pipe terminates the input. How do I fix this?