mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-03 23:31:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			142 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			142 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "8.2.2929",
 | 
						|
    "description": "A highly configurable text editor for efficiently creating and changing any kind of text.",
 | 
						|
    "homepage": "https://www.vim.org",
 | 
						|
    "license": "Vim",
 | 
						|
    "suggest": {
 | 
						|
        "vimtutor": "vimtutor"
 | 
						|
    },
 | 
						|
    "architecture": {
 | 
						|
        "64bit": {
 | 
						|
            "url": [
 | 
						|
                "https://github.com/vim/vim-win32-installer/releases/download/v8.2.2929/gvim_8.2.2929_x64.zip",
 | 
						|
                "https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/vim/install-context.reg",
 | 
						|
                "https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/vim/uninstall-context.reg"
 | 
						|
            ],
 | 
						|
            "hash": [
 | 
						|
                "8b9e970da382bc3e59258aa751c5b24041bbd4befaf2bd8c5c72394f0ff234bf",
 | 
						|
                "16a29881837047d783e8556506c73bbb292bdfefe042d77564d3c166d92b9d98",
 | 
						|
                "49225d3470bf4b397d3cab865eddca6e47610be356f812588588c2661a11557e"
 | 
						|
            ]
 | 
						|
        },
 | 
						|
        "32bit": {
 | 
						|
            "url": [
 | 
						|
                "https://github.com/vim/vim-win32-installer/releases/download/v8.2.2929/gvim_8.2.2929_x86.zip",
 | 
						|
                "https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/vim/install-context.reg",
 | 
						|
                "https://raw.githubusercontent.com/ScoopInstaller/Main/master/master/scripts/vim/uninstall-context.reg"
 | 
						|
            ],
 | 
						|
            "hash": [
 | 
						|
                "c4e0d156307ad86fe8f5170bb6f849c8f512f01cfefc5509b282e88703a9bb73",
 | 
						|
                "16a29881837047d783e8556506c73bbb292bdfefe042d77564d3c166d92b9d98",
 | 
						|
                "49225d3470bf4b397d3cab865eddca6e47610be356f812588588c2661a11557e"
 | 
						|
            ]
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "extract_dir": "vim\\vim82",
 | 
						|
    "pre_install": [
 | 
						|
        "Remove-Item \"$dir\\`$*\", \"$dir\\uninstal.*\", \"$dir\\install.exe\" -Recurse",
 | 
						|
        "if (!(Test-Path \"$persist_dir\\_vimrc\")) {",
 | 
						|
        "    Copy-Item \"$dir\\vimrc_example.vim\" \"$dir\\_vimrc\"",
 | 
						|
        "    Copy-Item \"$dir\\gvimrc_example.vim\" \"$dir\\_gvimrc\"",
 | 
						|
        "    Add-Content \"$dir\\_vimrc\" \"set shell=$((Get-Command powershell).Path)\\ -ExecutionPolicy\\ Bypass\" -Encoding Ascii",
 | 
						|
        "}",
 | 
						|
        "'install-context.reg', 'uninstall-context.reg' | ForEach-Object {",
 | 
						|
        "    $vimpath = \"$(current_dir $dir)\\gVim.exe\".Replace('\\', '\\\\')",
 | 
						|
        "    $content = (Get-Content \"$dir\\$_\").Replace('$vim', $vimpath)",
 | 
						|
        "    if ($global) { $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE') }",
 | 
						|
        "    Set-Content \"$dir\\$_\" $content",
 | 
						|
        "}",
 | 
						|
        "if (!(Test-Path \"$persist_dir\\vimrc\")) { New-Item \"$dir\\vimrc\" -ItemType File | Out-Null }"
 | 
						|
    ],
 | 
						|
    "bin": [
 | 
						|
        "vim.exe",
 | 
						|
        [
 | 
						|
            "vim.exe",
 | 
						|
            "vi"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "vim.exe",
 | 
						|
            "ex",
 | 
						|
            "-e"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "vim.exe",
 | 
						|
            "view",
 | 
						|
            "-R"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "vim.exe",
 | 
						|
            "rvim",
 | 
						|
            "-Z"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "vim.exe",
 | 
						|
            "rview",
 | 
						|
            "-RZ"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "vim.exe",
 | 
						|
            "vimdiff",
 | 
						|
            "-d"
 | 
						|
        ],
 | 
						|
        "gvim.exe",
 | 
						|
        [
 | 
						|
            "gvim.exe",
 | 
						|
            "gview",
 | 
						|
            "-R"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "gvim.exe",
 | 
						|
            "evim",
 | 
						|
            "-y"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "gvim.exe",
 | 
						|
            "eview",
 | 
						|
            "-Ry"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "gvim.exe",
 | 
						|
            "rgvim",
 | 
						|
            "-Z"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "gvim.exe",
 | 
						|
            "rgview",
 | 
						|
            "-RZ"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "gvim.exe",
 | 
						|
            "gvimdiff",
 | 
						|
            "-d"
 | 
						|
        ],
 | 
						|
        "xxd.exe"
 | 
						|
    ],
 | 
						|
    "shortcuts": [
 | 
						|
        [
 | 
						|
            "gvim.exe",
 | 
						|
            "gVim"
 | 
						|
        ]
 | 
						|
    ],
 | 
						|
    "persist": [
 | 
						|
        "_vimrc",
 | 
						|
        "_gvimrc",
 | 
						|
        "vimfiles",
 | 
						|
        "vimrc"
 | 
						|
    ],
 | 
						|
    "checkver": {
 | 
						|
        "github": "https://github.com/vim/vim-win32-installer"
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "architecture": {
 | 
						|
            "64bit": {
 | 
						|
                "url": "https://github.com/vim/vim-win32-installer/releases/download/v$version/gvim_$version_x64.zip"
 | 
						|
            },
 | 
						|
            "32bit": {
 | 
						|
                "url": "https://github.com/vim/vim-win32-installer/releases/download/v$version/gvim_$version_x86.zip"
 | 
						|
            }
 | 
						|
        },
 | 
						|
        "extract_dir": "vim\\vim$majorVersion$minorVersion"
 | 
						|
    }
 | 
						|
}
 |