<?xml version="1.0" encoding="utf-8"?>
<PRONOM-Report xmlns="http://pronom.nationalarchives.gov.uk">
  <report_format_detail>
    <FileFormat>
      <FormatID>2407</FormatID>
      <FormatName>Vim SWAP File</FormatName>
      <FormatVersion>
      </FormatVersion>
      <FormatAliases>
      </FormatAliases>
      <FormatFamilies>
      </FormatFamilies>
      <FormatTypes>
      </FormatTypes>
      <FormatDisclosure>
      </FormatDisclosure>
      <FormatDescription>Vim SWAP file is a temporary file created by the open source Vim text editor, when editing a file. The file's name typically begins with ".", and ends with ".swp". The file is normally deleted when editing is complete, but may be left behind in the event of a crash or other abnormal termination. Its main purpose is to periodically record unsaved changes made to the file. It also serves as a lock file. The file format is undocumented, and not necessarily portable.

Vim is free and open-source, screen-based text editor program for Unix, released to the public in 1991. Vim was designed for use both from a command-line interface and as a standalone application in a graphical user interface.</FormatDescription>
      <BinaryFileFormat>
      </BinaryFileFormat>
      <ByteOrders>
      </ByteOrders>
      <ReleaseDate>
      </ReleaseDate>
      <WithdrawnDate>
      </WithdrawnDate>
      <ProvenanceSourceID>180</ProvenanceSourceID>
      <ProvenanceName>The National Archives and Records Administration / The National Archives and Records Administration</ProvenanceName>
      <ProvenanceSourceDate>04 Jan 2022</ProvenanceSourceDate>
      <ProvenanceDescription>11/2023 (v.115)- File format type removed. Submitted by The National Archives and Records Administration.</ProvenanceDescription>
      <LastUpdatedDate>15 Nov 2023</LastUpdatedDate>
      <FormatNote>https://www.vim.org/

https://vimhelp.org/recover.txt.html#swap-file

http://fileformats.archiveteam.org/wiki/Vim_swap_file

https://github.com/adamhotep/misc-scripts/blob/master/ls.swp

https://en.wikipedia.org/wiki/Vim_(text_editor)</FormatNote>
      <FormatRisk>
      </FormatRisk>
      <TechnicalEnvironment>
      </TechnicalEnvironment>
      <FileFormatIdentifier>
        <Identifier>fmt/1582</Identifier>
        <IdentifierType>PUID</IdentifierType>
      </FileFormatIdentifier>
      <ExternalSignature>
        <ExternalSignatureID>2867</ExternalSignatureID>
        <Signature>swp</Signature>
        <SignatureType>File extension</SignatureType>
      </ExternalSignature>
      <InternalSignature>
        <SignatureID>1921</SignatureID>
        <SignatureName>Vim SWAP file</SignatureName>
        <SignatureNote>BOF; Offset: 0; Magic Bytes: 'b0VIM'</SignatureNote>
        <ByteSequence>
          <ByteSequenceID>2223</ByteSequenceID>
          <PositionType>Absolute from BOF</PositionType>
          <Offset>0</Offset>
          <MaxOffset>0</MaxOffset>
          <IndirectOffsetLocation>
          </IndirectOffsetLocation>
          <IndirectOffsetLength>
          </IndirectOffsetLength>
          <Endianness>
          </Endianness>
          <ByteSequenceValue>623056494D</ByteSequenceValue>
        </ByteSequence>
      </InternalSignature>
    </FileFormat>
    <SearchCriteria>Criteria</SearchCriteria>
  </report_format_detail>
</PRONOM-Report>
