diff mbox series

Add swap files for vim to .gitignore

Message ID 90927137-2333-4eea-64d7-98ac0c404801@netcologne.de
State New
Headers show
Series Add swap files for vim to .gitignore | expand

Commit Message

Thomas Koenig June 20, 2020, 10:10 a.m. UTC
Add swap files for vim to .gitignore.

This patch adds the most common swap files for vim to .gitignore. The
editor may leave those behind if is stopped or crashes.  We already
do the same kind of things for emacs.

ChangeLog:

         * .gitignore: Add swap files for vim.

Comments

Segher Boessenkool June 20, 2020, 10:49 a.m. UTC | #1
Hi!

On Sat, Jun 20, 2020 at 12:10:22PM +0200, Thomas Koenig via Gcc-patches wrote:
> Add swap files for vim to .gitignore.
> 
> This patch adds the most common swap files for vim to .gitignore. The
> editor may leave those behind if is stopped or crashes.  We already
> do the same kind of things for emacs.

> +.*.swp
> +.*.swo

- On most setups, .swp is the most common name, and .sw[a-z] in general;
  not something with two dots.

- I have never had issues with vim swap files showing up in git, there
  must be something else you do different, too.

- Maybe we should ignore every dot file (except those few we then
  unignore)?


Segher
diff mbox series

Patch

diff --git a/.gitignore b/.gitignore
index d9eeaf2ed7a..43b85a6e127 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,9 @@ 
 .#*
 *#
 
+.*.swp
+.*.swo
+
 *.flt
 *.gmo
 *.info