Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Removing Gvim temp files automatically


    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?


  2. #2
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Chandigarh, India
    Whenever you edit any file, OS creates a backup copy of it ( filename~ ). You have to delete those files manually.
    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
    hehe I know that

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

  4. $spacer_open
  5. #4

    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