problem editing big file in vi

I have a big file, which vi opens it with message not sufficient space with file system.
I am not adding any data in the file but changing some values within.

To make these changes effective, it asks for forced write (w!), even after doing this,
I see this particular record, change is not effected.

What do I need to do in order to effect the changes with this big file?

With my system elvis & vim is not installed.

Find some directory in a filesystem big enough to hold a second copy of that file. You must be able to write to that directory. Set the environment vaiable TMPDIR to that directory. This should make vi open the temporary file in that directory.

Alternatively, ask people to clean up tmp files - vi is usually aimed at /var/tmp by default. Your sysadmin should keep junk files to a minimum in places like : /var/tmp and /tmp just for this reason.

Besides VI is a good (in text mode) program:
Midnight Commander, generally have names: MC.
U can write ' mcedit ' and U have a good editor for small and big files, but also is a very good editor.

regards
kzl

Use sed - a stream editor!