]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Move vim install into dedicated script.
authorEdTheDev <edward@delaporte.us>
Fri, 29 Jan 2021 14:48:45 +0000 (08:48 -0600)
committerEdTheDev <edward@delaporte.us>
Fri, 29 Jan 2021 14:48:45 +0000 (08:48 -0600)
bootstrap.ps1
install/vim.ps1 [new file with mode: 0644]

index f534badaf1754e9482cf092990c4460ad89f8670..68ea146224156da608f593846ec031629b4b60b8 100644 (file)
@@ -16,6 +16,8 @@ param(
   [switch]$dev_tools,
   [Parameter(Mandatory=$true, HelpMessage="Install Modeling Tools")]
   [switch]$archi,
   [switch]$dev_tools,
   [Parameter(Mandatory=$true, HelpMessage="Install Modeling Tools")]
   [switch]$archi,
+  [Parameter(Mandatory=$true, HelpMessage="Install Vim")]
+  [switch]$vim,
 )
 
 # Setup my PowerShell Profile (on Windows)
 )
 
 # Setup my PowerShell Profile (on Windows)
@@ -78,13 +80,6 @@ if($dev_tools){
   ./install/dev.ps1
 }
 
   ./install/dev.ps1
 }
 
-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
+if($vim){
+  ./install/vim.ps1
+}
diff --git a/install/vim.ps1 b/install/vim.ps1
new file mode 100644 (file)
index 0000000..4d79552
--- /dev/null
@@ -0,0 +1,26 @@
+<#\r
+.SYNOPSIS\r
+\r
+Install Vim for Windows in the EdTheDev configuration.\r
+\r
+.DESCRIPTION\r
+\r
+Include Vim-Plug for plugin management.\r
+\r
+.NOTES\r
+\r
+Requires Chocolatey package manager.\r
+\r
+#>\r
+PowerShellGet\Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force\r
+\r
+choco install vim\r
+\r
+# Install vim-plug\r
+iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`\r
+    ni $HOME/vimfiles/autoload/plug.vim -Force\r
+\r
+# Deploy a stub file to source my vimrc when on Windows.\r
+cp win_vimrc ~/.vimrc\r
+\r
+Write-Host "Be sure to run PlugInstall within Vim."
\ No newline at end of file