With the cursor on the first line at the first column, the command t=<C-v>2jINew<Esc>
where:
t=
moves the cursor to immediately before the first =
.
<C-v>
for visual block mode.
2j
to select the two lines beneath. Replace the 2 with any number or press j until the cursor has selected the desired number of lines.
I
for insert mode.
New
for the desired text to append to all of the variables.
<Esc>
to exit insert mode and apply the text to all lines in the selection.
Edit
In retrospect, that will only work for a solid block of variables. If they're spaced throughout a file, maybe a macro? qq/var<CR>eeaNew<Esc>q
qq
to start the macro in register q
/var<CR>
to search for var.
ee
to move to the end of the variable name.
aNew
to append "New".
<Esc>q
to exit insert mode and stop recording the macro.
Repeat with @q
as needed.
Hope that helps!