I have this sample line in the buffer:
export PS1="\[${Cyan}\]$(((SHLVL>1)) && echo "${SHLVL}\[${IBlack}\].")\[${IGreen}\]\u\[${IBlack}\]@\[${Purple}\]\h\[${IYellow}\] \w \$ \[${Color_Off}\]"
and i want to delete all \[
so while the cursor is on the line i write :s/\\[//g
and get the error
E486: Pattern not found: \\[//g
What do i do wrong? Somehow vim thinks that //g
is part of the pattern?
When i search with /\\[
i get proper results.
:s///g
Here, vim will use the old search term in the blank pattern\[
has some special meaning which i do not understand and can't find it on google.:s/\V\\[//g
(See:help \V
)[
like so::s/\\\[//g