I want to substitute this word${ARRAY1[@]} with $1 on vim substitution commandI did:%s:\$\{ARRAY1[\@]\}:\$1:gBut give me error about number of repetition,i try also  but doesn't workHow to do?Thanks
How to escape correctly this word on vim?
vim;regular expression;escape characters
:%s/\${ARRAY1\[@\]}/$1/worked for me. Apparently, you must escape [ and ] but not { and }.I always use / instead of : as seperation, but%s:\${ARRAY1\[@\]}:$1:gworks as well.