/etc/apt/sources.list” E212: Can’t open file for writing
Vim has a builtin help system. I just quoted what it says to :h E212. You might want to edit the file as a superuser as sudo vim FILE. Or if you don’t want to leave your existing vim session (and now have proper sudo rights), you can issue: Which will save the file. HTH