diff --git a/vim.json b/vim.json index a1aefad536..2993074f2d 100644 --- a/vim.json +++ b/vim.json @@ -17,17 +17,14 @@ "vim.exe", "gvim.exe" ], - "post_install": "if(!(test-path ~\\.vimrc)) { - cp \"$dir\\vimrc_example.vim\" ~\\.vimrc - \"set shell=$((gcm powershell).path)\\ -executionpolicy\\ bypass\" | out-file ~\\.vimrc -append -encoding ascii - echo '~/.vimrc was created with your shell set to Powershell.' - } else { echo '~/.vimrc exists, skipping' }", + "post_install": "if( !(test-path ~\\.vimrc) -and !(test-path ~\\_vimrc) -and !(test-path ~\\vimfiles\\vimrc) -and !(test-path $env:VIM\\_vimrc) ) { + cp \"$dir\\vimrc_example.vim\" ~\\_vimrc + \"set shell=$((gcm powershell).path)\\ -executionpolicy\\ bypass\" | out-file ~\\_vimrc -append -encoding ascii + echo 'Default vimrc file created in ~/_vimrc, with shell set to PowerShell.' + } else { echo 'Existing vimrc file found, no default configuration created' }", "checkver": { "github": "https://github.com/vim/vim-win32-installer" }, - "env_set": { - "VIM": "$dir" - }, "autoupdate": { "architecture": { "32bit": {