when using vi, it seems to leave a trail of temporary files. This can be fixed by setting ht temporary file folder.

so

1. access vim

vi

2. add temp directory

set backupdir=/tmp,.
set directory=/tmp,.

http://stackoverflow.com/questions/607435/why-does-vim-save-files-with-a...