home

VIM

Replacing characters in SPARQL queries

:'<,'>s!\\newline!!ge|'<,'>s!\\!!ge|'<,'>s!begin{flushleft}!\\begin{lstlisting}[style=construct]!ge|'<,'>s!end{flushleft}!\\end{lstlisting}!ge|'<,'>s!\$<\$!<!ge|'<,'>s!\$>\$!>!ge|'<,'>s!{}!!g

"The 'e' flag tells ":substitute" that not finding a match is not an error." —usr_12.txt,

example:

Tags