vim(-nightly): Add vimrc persist (#764)

- Closes #749
This commit is contained in:
Bart Libert 2020-02-04 09:26:19 +01:00 committed by GitHub
parent 7cd7b932ba
commit 6cab93ccb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -42,7 +42,8 @@
" $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",
@ -117,7 +118,8 @@
"persist": [
"_vimrc",
"_gvimrc",
"vimfiles"
"vimfiles",
"vimrc"
],
"checkver": {
"github": "https://github.com/vim/vim-win32-installer"

View File

@ -26,7 +26,8 @@
" $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",
@ -101,7 +102,8 @@
"persist": [
"_vimrc",
"_gvimrc",
"vimfiles"
"vimfiles",
"vimrc"
],
"checkver": {
"url": "https://ftp.nluug.nl/pub/vim/pc",