- This assumes that the items you have are one per line
- Go to the top of the list
- Go to the end of the word/number of the first word (
SHIFT + $) - Hit
Crtl + V - Hit
Shift + g - Hit
Shift + $(this will remove the highlight of the entire block and only leave the last character highlighted) - Hit
Shift + A - Hit
,(for this case, but it can be any character that you want) - Hit
esc(commas [or whatever character you pressed] are now added to the end
- Highlight all that you want to combine
Shift + VShift + gShift + j
:w !sudo tee %