You can use some other text editor. If vi
is confusing, maybe you're lucky enough to have mcedit
installed.
You can also copy the file on your machine with scp
, edit it locally with your favorite editor and copy it back. My confusing editor of choice does this kind of thing transparently, as if I was working with a local file.