Given the following code sample:
uint8_t i, in, ni;
i = in = 2; ni = 1;
while (2 == i > ni) in++;
How can I replace i, in, and ni<
In vim you can have multiple commands, separated by |, so you could do your replacement with %s command:
:%s/\/inni/ | %s/\/inin/ | %s/\/nini/
Shortly what it means:
%s/search/replacement/
searches for given search pattern and replaces it with replacement;
symbols "\<" and "\>" are standing here as word boundaries.