From: EdTheDev Date: Fri, 29 Jan 2021 16:27:00 +0000 (-0600) Subject: Moving stuff around for vim setup X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/d7e7dc9d93f360a2881560562b45419ff4fcf23d?ds=sidebyside Moving stuff around for vim setup --- diff --git a/install/admin/favorite-ps-modules.ps1 b/install/admin/favorite-ps-modules.ps1 index 214fc33..ea7faa1 100644 --- a/install/admin/favorite-ps-modules.ps1 +++ b/install/admin/favorite-ps-modules.ps1 @@ -3,4 +3,5 @@ Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted # Install nice Git stuff. -Install-Module -Name posh-git \ No newline at end of file +Install-Module -Name posh-git +o \ No newline at end of file diff --git a/install/profile.ps1 b/install/profile.ps1 index 22be8ac..e1061ac 100644 --- a/install/profile.ps1 +++ b/install/profile.ps1 @@ -40,3 +40,5 @@ else { # # Brute force ensure we update our git copy once in awhile. # Copy-Item -Path $destFile -Destination ./profiles.json #} + +PowerShellGet\Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force \ No newline at end of file diff --git a/install/vim.ps1 b/install/vim.ps1 index 4d79552..fc17397 100644 --- a/install/vim.ps1 +++ b/install/vim.ps1 @@ -1,26 +1,12 @@ <# .SYNOPSIS -Install Vim for Windows in the EdTheDev configuration. - -.DESCRIPTION - -Include Vim-Plug for plugin management. +Install Vim for Windows .NOTES Requires Chocolatey package manager. #> -PowerShellGet\Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force - -choco install vim - -# Install vim-plug -iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` - ni $HOME/vimfiles/autoload/plug.vim -Force - -# Deploy a stub file to source my vimrc when on Windows. -cp win_vimrc ~/.vimrc -Write-Host "Be sure to run PlugInstall within Vim." \ No newline at end of file +choco install vim \ No newline at end of file diff --git a/setup/ReadMe.md b/setup/ReadMe.md new file mode 100644 index 0000000..ae371d0 --- /dev/null +++ b/setup/ReadMe.md @@ -0,0 +1,6 @@ +## Setup ReadMe + +These scripts are to set up or configure a favorite software tool. +See `/install` for scripts to install a favorite software tool. + +You typically want to run these scripts without elevation - **as your preferred login user**. diff --git a/setup/vim.ps1 b/setup/vim.ps1 new file mode 100644 index 0000000..d8a0aa7 --- /dev/null +++ b/setup/vim.ps1 @@ -0,0 +1,23 @@ +<# +.SYNOPSIS + +Setup Vim in EdTheDev's preferred configuration. + +.DESCRIPTION + +Installs Vim-Plug for plugin management. +Assumes my local vimrc is sitting in C:\src\dotfiles + +.NOTES + +Be sure to run :PlugInstall within Vim afterwards. + +#> +# Install vim-plug +iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` + ni $HOME/vimfiles/autoload/plug.vim -Force + +# Deploy a stub file to source my vimrc when on Windows. +cp win_vimrc ~/.vimrc + +Write-Host "Be sure to run PlugInstall within Vim." \ No newline at end of file