{"id":43271985,"url":"https://github.com/tep/file-viminfo","last_synced_at":"2026-02-01T16:04:03.692Z","repository":{"id":57552134,"uuid":"155232592","full_name":"tep/file-viminfo","owner":"tep","description":"Golang Library for Parsing Vim Swapfiles","archived":false,"fork":false,"pushed_at":"2023-06-26T18:30:58.000Z","size":41,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T04:57:06.009Z","etag":null,"topics":["golang","vim"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-29T15:10:26.000Z","updated_at":"2023-06-26T18:30:59.000Z","dependencies_parsed_at":"2024-06-20T00:11:43.156Z","dependency_job_id":"0a99b388-bc18-4e75-af6b-314c4c4036ef","html_url":"https://github.com/tep/file-viminfo","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tep/file-viminfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tep%2Ffile-viminfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tep%2Ffile-viminfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tep%2Ffile-viminfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tep%2Ffile-viminfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tep","download_url":"https://codeload.github.com/tep/file-viminfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tep%2Ffile-viminfo/sbom","scorecard":{"id":874163,"data":{"date":"2025-08-11","repo":{"name":"github.com/tep/file-viminfo","commit":"79e6bd4a618a9156d0b48febaa0ccc7a44a1ffc1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T05:19:30.150Z","repository_id":57552134,"created_at":"2025-08-24T05:19:30.150Z","updated_at":"2025-08-24T05:19:30.150Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28981893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T15:35:50.179Z","status":"ssl_error","status_checked_at":"2026-02-01T15:35:38.075Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","vim"],"created_at":"2026-02-01T16:04:03.410Z","updated_at":"2026-02-01T16:04:03.686Z","avatar_url":"https://github.com/tep.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![GoDoc](https://godoc.org/toolman.org/file/viminfo?status.svg)](https://godoc.org/toolman.org/file/viminfo)  [![Go Report Card](https://goreportcard.com/badge/toolman.org/file/viminfo)](https://goreportcard.com/report/toolman.org/file/viminfo) [![Build Status](https://travis-ci.org/tep/file-viminfo.svg?branch=master)](https://travis-ci.org/tep/file-viminfo)\n\n# viminfo\n`import \"toolman.org/file/viminfo\"`\n\n* [Overview](#pkg-overview)\n* [Index](#pkg-index)\n\n## \u003ca name=\"pkg-overview\"\u003eOverview\u003c/a\u003e\nPackage viminfo reads and parses Vim swap files into a well-formed structure.\n\n## Install\n\n``` sh\n  go get toolman.org/file/viminfo\n```\n\n## \u003ca name=\"pkg-index\"\u003eIndex\u003c/a\u003e\n* [type CryptMethod](#CryptMethod)\n  * [func (cm CryptMethod) String() string](#CryptMethod.String)\n* [type FileFormat](#FileFormat)\n  * [func (ff FileFormat) String() string](#FileFormat.String)\n* [type VimInfo](#VimInfo)\n  * [func Parse(filename string) (*VimInfo, error)](#Parse)\n\n\n#### \u003ca name=\"pkg-files\"\u003ePackage files\u003c/a\u003e\n[block0.go](/src/toolman.org/file/viminfo/block0.go) [cryptmethod.go](/src/toolman.org/file/viminfo/cryptmethod.go) [format.go](/src/toolman.org/file/viminfo/format.go) [viminfo.go](/src/toolman.org/file/viminfo/viminfo.go) \n\n\n\n\n\n\n## \u003ca name=\"CryptMethod\"\u003etype\u003c/a\u003e [CryptMethod](/src/target/cryptmethod.go?s=55:76#L1)\n``` go\ntype CryptMethod byte\n```\nCryptMethod is a vim crypto method\n\n\n``` go\nconst (\n    CMnone      CryptMethod = '0' // No encryption\n    CMzip       CryptMethod = 'c' // Default encryption\n    CMblowfish  CryptMethod = 'C' // Blowfish encryption\n    CMblowfish2 CryptMethod = 'd' // Blowfish2 encryption\n)\n```\nSupported Crypto Methods\n\n\n\n\n\n\n\n\n\n\n### \u003ca name=\"CryptMethod.String\"\u003efunc\u003c/a\u003e (CryptMethod) [String](/src/target/cryptmethod.go?s=327:364#L4)\n``` go\nfunc (cm CryptMethod) String() string\n```\n\n\n\n## \u003ca name=\"FileFormat\"\u003etype\u003c/a\u003e [FileFormat](/src/target/format.go?s=74:94#L1)\n``` go\ntype FileFormat byte\n```\nFileFormat indicates the EOL token for an edited file\n\n\n``` go\nconst (\n    FFnone FileFormat = iota // Format is not known\n    FFunix                   // Unix Format \"\\n\"\n    FFdos                    // DOS Format  \"\\r\\n\"\n    FFmac                    // MAC Format  \"\\r\"\n)\n```\nSupported formats\n\n\n\n\n\n\n\n\n\n\n### \u003ca name=\"FileFormat.String\"\u003efunc\u003c/a\u003e (FileFormat) [String](/src/target/format.go?s=317:353#L4)\n``` go\nfunc (ff FileFormat) String() string\n```\n\n\n\n## \u003ca name=\"VimInfo\"\u003etype\u003c/a\u003e [VimInfo](/src/target/viminfo.go?s=269:1405#L4)\n``` go\ntype VimInfo struct {\n    // Version indicates which version of Vim wrote this swap file\n    Version string\n    // LastMod is the modification time for the file being edited\n    LastMod time.Time\n    // Inode is the filesystem inode of the file being edited\n    Inode uint32\n    // PID is the process ID for the vim session editing the file\n    PID uint32\n    // User is the username for the vim session's process owner (or, UID of username is unavailable)\n    User string\n    // Hostname is the hostname where the vim session is/was running\n    Hostname string\n    // Filename reflects the name of the file being edited\n    Filename string\n    // Encoding is the file encoding for the file being edited (or, the word \"encrypted\" if the file is encrypted)\n    Encoding string\n    // Crypto indicates the \"cryptmethod\" for the file being edited (or, \"plaintext\" if the file is not encrypted)\n    Crypto CryptMethod\n    // Format is the FileFormat for the edited file (e.g. unix, dos, mac)\n    Format FileFormat\n    // Modified indicates whether the edit session has unsaved changes\n    Modified bool\n    // SameDir indicates whether the edited file is in the same directory as the swap file\n    SameDir bool\n}\n```\nVimInfo reflects the meta-data stored in a vim swapfile\n\n\n\n\n\n\n\n### \u003ca name=\"Parse\"\u003efunc\u003c/a\u003e [Parse](/src/target/viminfo.go?s=1554:1599#L33)\n``` go\nfunc Parse(filename string) (*VimInfo, error)\n```\nParse reads and parses the vim swapfile specified by filename and returns\na populated *VimInfo, or an error if the file could not be parsed.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftep%2Ffile-viminfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftep%2Ffile-viminfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftep%2Ffile-viminfo/lists"}