{
  "id": "vim",
  "name": "Vim",
  "homepage": "https://www.vim.org",
  "description": "The ubiquitous modal text editor, configured through a single vimrc.",
  "icon": "theSVG:vim",
  "executables": [
    "vim"
  ],
  "dotfiles": {
    "paths": [
      "~/.vimrc",
      "~/.vim/",
      "[configHome]/vim/"
    ],
    "exclude": [
      "~/.viminfo",
      "~/.vim/pack/",
      "~/.vim/plugged/",
      "~/.vim/bundle/",
      "~/.vim/.netrwhist",
      "~/.vim/swap/",
      "~/.vim/undo/",
      "~/.vim/backup/",
      "~/.vim/view/",
      "[configHome]/vim/pack/",
      "[configHome]/vim/plugged/",
      "[configHome]/vim/bundle/",
      "[configHome]/vim/.netrwhist",
      "[configHome]/vim/swap/",
      "[configHome]/vim/undo/",
      "[configHome]/vim/backup/",
      "[configHome]/vim/view/"
    ],
    "secret": [],
    "machine_lines": [
      {
        "file": "~/.vimrc",
        "match": {
          "prefix": [
            "set directory=",
            "set backupdir=",
            "set undodir="
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Open in Vim",
    "description": "Open files in Vim with common startup options. Optional-value flags such as -p and -o are left out.",
    "quality": "ai-draft",
    "base": "fig:vim",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/vim.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Files",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "readonly",
        "label": "Read-only",
        "type": "boolean",
        "option": [
          "-R"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "diff",
        "label": "Diff mode",
        "type": "boolean",
        "option": [
          "-d"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_swap",
        "label": "No swap file",
        "type": "boolean",
        "option": [
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "clean",
        "label": "Clean (no vimrc, plugins)",
        "type": "boolean",
        "option": [
          "--clean"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "noplugin",
        "label": "No plugins",
        "type": "boolean",
        "option": [
          "--noplugin"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "command",
        "label": "Command after load",
        "type": "string",
        "option": [
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "cmd",
        "label": "Command before vimrc",
        "type": "string",
        "option": [
          "--cmd"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "vimrc",
        "label": "Use vimrc",
        "type": "path",
        "option": [
          "-u"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "startuptime",
        "label": "Startup timing file",
        "type": "path",
        "option": [
          "--startuptime"
        ],
        "path": {
          "kind": "file",
          "role": "output"
        },
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "binary",
        "label": "Binary mode",
        "type": "boolean",
        "option": [
          "-b"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "open",
        "label": "Open files",
        "fields": [
          "files",
          "readonly"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "diff",
        "label": "Diff files",
        "set": {
          "diff": [
            true
          ]
        },
        "fields": [
          "files",
          "diff"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "clean",
        "label": "Open without config",
        "set": {
          "clean": [
            true
          ]
        },
        "fields": [
          "files",
          "clean"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "readonly",
          "diff",
          "no_swap",
          "clean"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "command",
          "cmd",
          "vimrc",
          "startuptime",
          "binary",
          "noplugin"
        ]
      }
    ]
  }
}
