---
title: "vim backup or tempfile"
author: "lingceng"
date: "2013-05-15T09:35:21Z"
tags: []
categories: ["开源软件"]
slug: "vim-backup-or-tempfile"
draft: false
lastmod: "2013-05-20T11:14:41Z"
id: 1869584
url: "https://lingceng.iteye.com/blog/1869584"
---

"Put vim files in the temp directory instead of the current directory
set dir=%TMP%
set backupdir=%TMP%