Reputation: 2887
How can I change in my document all instances of \cite{something} to [@something]?
Upvotes: 0
Views: 61
Reputation: 195289
I would do it with :
:%s#\v\\cite\{([^}]+)\}#[@\1]#g
note that the last 'g' flag will be important if you have more than one \cite{something}
in same line.
Since you want to replace ALL instances, I would do it with 'g'.
Upvotes: 2