Code:
bash$ ls ~/tmp
bash$ vim ~/tmp/test.txt
<edit file and :wq or :x out of vim>
bash$ ls ~/tmp
test.txt
bash$ vim ~/tmp/test.txt
<edit file and :wq or :x out of vim>
bash$ ls ~/tmp
test.txt
test.txt~
something like that? the ~ version is a backup. search "vim turn off backup" at a search engine of your choice, that should help.