How can I edit a large file in place?
I have a few files sized > 1 GB each. I need to remove last few bytes from the files. How can I do it? I prefer to edit file in place to save disk space.
I have a few files sized > 1 GB each. I need to remove last few bytes from the files. How can I do it? I prefer to edit file in place to save disk space.
In bash, using vi mode, if I hit Esc,v, my current command line is opened in the editor specified by $EDITOR and I am able to edit it in full screen before ‘saving’ the command to be returned to the shell and executed.
I have to edit some files placed on some server I could reach via ssh.
Is there a .vimrc setting to automatically remove trailing whitespace when saving a file?