Vim creates swap files when open buffers are edited. These files preserve un-written changes in buffers. They are useful for recovering from system crashes, preventing multiple write-buffers on a single file (which could cause "phantom-edits"), etc. However, these swap files should not be tracked in a git repository. For a given working file, Vim will create a swap file of the format `<filename>.swp`. Vim will attempt to remove swap files upon writing & exiting Vim. However, swap files aren't always cleaned up. This may happen if Vim terminates improperly due to a system crash or similar. So, if Vim attempts to create a swap file of the format `<filename>.swp`, but that path already exists, then Vim will create a swap file of the format `<filename>.swo`. If `<filename>.swo` already exists, then Vim will create a swap file `<filename>.swn`. Vim will continue backwards through the alphabet until it finds an available swap-file path. If `<filename>.sw[a-p]` is completely occupied, then Vim will attempt `<filename>.sv[a-z]`, and so forth. However, I did not include `*.sv[a-z]` in this change because I believe that would be overkill, and it may trespass on other programs. I am reasonably certain that no other programs rely on `*.sw[a-p]` files. I am less certain about `*.sv[a-z]` files. Also, having that many swap files is a rarity. The disadvantages of including `*.sv[a-z]` in the .gitignore outweigh the benefits. So, I only included `*.sw[a-p]` files in this change.
87 lines
1.2 KiB
Plaintext
87 lines
1.2 KiB
Plaintext
### Node ###
|
|
|
|
# Logs
|
|
logs
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# Optional npm cache directory
|
|
.npm
|
|
|
|
# Dependency directories
|
|
/node_modules
|
|
/jspm_packages
|
|
/bower_components
|
|
|
|
# Yarn Integrity file
|
|
.yarn-integrity
|
|
|
|
# Optional eslint cache
|
|
.eslintcache
|
|
|
|
# dotenv environment variables file(s)
|
|
.env
|
|
.env.*
|
|
|
|
#Build generated
|
|
dist/
|
|
build/
|
|
|
|
|
|
### SublimeText ###
|
|
# cache files for sublime text
|
|
*.tmlanguage.cache
|
|
*.tmPreferences.cache
|
|
*.stTheme.cache
|
|
|
|
# workspace files are user-specific
|
|
*.sublime-workspace
|
|
|
|
# project files should be checked into the repository, unless a significant
|
|
# proportion of contributors will probably not be using SublimeText
|
|
# *.sublime-project
|
|
|
|
|
|
### VisualStudioCode ###
|
|
.vscode/*
|
|
!.vscode/settings.json
|
|
!.vscode/tasks.json
|
|
!.vscode/launch.json
|
|
!.vscode/extensions.json
|
|
|
|
### Vim ###
|
|
*.sw[a-p]
|
|
|
|
### WebStorm/IntelliJ ###
|
|
/.idea
|
|
modules.xml
|
|
*.ipr
|
|
|
|
|
|
### System Files ###
|
|
.DS_Store
|
|
|
|
# Windows thumbnail cache files
|
|
Thumbs.db
|
|
ehthumbs.db
|
|
ehthumbs_vista.db
|
|
|
|
# Folder config file
|
|
Desktop.ini
|
|
|
|
# Recycle Bin used on file shares
|
|
$RECYCLE.BIN/
|
|
|
|
# Thumbnails
|
|
._*
|
|
|
|
# Files that might appear in the root of a volume
|
|
.DocumentRevisions-V100
|
|
.fseventsd
|
|
.Spotlight-V100
|
|
.TemporaryItems
|
|
.Trashes
|
|
.VolumeIcon.icns
|
|
.com.apple.timemachine.donotpresent
|