Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I've aliased vi to gvim and every time I'm done editing a file, a file~ temp file remains. This happens even when no crash or problem of any sort ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    7

    Removing Gvim temp files automatically


    Hi,

    I've aliased vi to gvim and every time I'm done editing a file, a file~ temp file remains.

    This happens even when no crash or problem of any sort happened (and that is highly undesirable as you can imagine

    Does anyone have a fix to that?

    Thanks!

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Whenever you edit any file, OS creates a backup copy of it ( filename~ ). You have to delete those files manually.
    Code:
    find . -name "*~" -type f -print0|xargs -0 rm
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2008
    Posts
    7
    hehe I know that

    I just meant "is there a way to desactivate the automatic saving"?

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Aug 2008
    Posts
    1
    Hi

    please append at the end of vimrc

    set nobackup
    set nowritebackup

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •