updated install an vim

This commit is contained in:
Eric D. Rohler 2020-04-03 03:26:32 -04:00
parent 814178f7ee
commit dbf2c10217
2 changed files with 51 additions and 15 deletions

View File

@ -1,34 +1,72 @@
# User Profile # # Self-elevate the script if required
Write-Host "$($env:USERPROFILE)" # if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {
# VS Code Directory # if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) {
Write-Host "$($env:APPDATA)\Code\User" # $CommandLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments
# Cmder Config Directory # Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine
Write-Host "$($env:CMDER_ROOT)\config" # Exit
# }
# }
# User Profile
Write-Host "User Profile Directory: $($env:USERPROFILE)"
# VS Code Directory
$app_data = $env:APPDATA
Write-Host "VS Code User Directory: $($app_data)\Code\User"
$vscode_user_settings_path = "$($app_data)\Code\User\settings.json"
Write-Host "VS Code User Settings Path: $($vscode_user_settings_path)"
# Cmder Config Directory
$cmder_root = $env:CMDER_ROOT
Write-Host "Cmder Config Directory: $($cmder_root)\config"
$cmder_user_profile_cmd_path = "$($cmder_root)\config\user_profile.cmd"
Write-Host "Cmder CMD User Profile Path: $($cmder_user_profile_cmd_path)"
$cmder_user_aliases_cmd_path = "$($cmder_root)\config\user_aliases.cmd"
Write-Host "Cmder CMD Aliases Path: $($cmder_user_aliases_cmd_path)"
$cmder_user_profile_ps_path = "$($cmder_root)\config\user_profile.ps1"
Write-Host "Cmder PowerShell Profile Path: $($cmder_user_profile_ps_path)"
# Neovim Config Directory
$local_app_data = $env:LOCALAPPDATA
Write-Host "Neovim Init Directory: $($local_app_data)\nvim"
$neovim_init_path = "$($local_app_data)\nvim\init.vim"
Write-Host "Neovim Init Path: $($neovim_init_path)"
$cmder_user_aliases_cmd_path = "$($env:CMDER_ROOT)\config\user_aliases.cmd"
if (-not (Test-Path -Path $cmder_user_aliases_cmd_path)) { if (-not (Test-Path -Path $cmder_user_aliases_cmd_path)) {
} else { } else {
Write-Host "Cmder User Aliases Exists" Write-Host "Cmder User Aliases Exists"
} }
$cmder_user_profile_cmd_path = "$($env:CMDER_ROOT)\config\user_profile.cmd"
if (-not (Test-Path -Path $cmder_user_profile_cmd_path)) { if (-not (Test-Path -Path $cmder_user_profile_cmd_path)) {
} else { } else {
Write-Host "Cmder User Profile Exists" Write-Host "Cmder User Profile Exists"
} }
$cmder_user_profile_ps_path = "$($env:CMDER_ROOT)\config\user_profile.ps1"
if (-not (Test-Path -Path $cmder_user_profile_ps_path)) { if (-not (Test-Path -Path $cmder_user_profile_ps_path)) {
} else { } else {
Write-Host "Cmder Powershell Profile Exists" Write-Host "Cmder Powershell Profile Exists"
} }
$vscode_user_settings_path = "$($env:APPDATA)\Code\User"
if (-not (Test-Path -Path $vscode_user_settings_path)) { if (-not (Test-Path -Path $vscode_user_settings_path)) {
} else { } else {
Write-Host "VS Code User Settings Exists" Write-Host "VS Code User Settings Exists"
} }
if (-not (Test-Path -Path $neovim_init_path)) {
Write-Host "Repo init.vim: $($PWD)\vim\init.vim"
New-Item -Path $neovim_init_path -ItemType SymbolicLink -Value "$($PWD)\vim\init.vim"
Get-Item -Path $neovim_init_path
} else {
Write-Host "Neovim Init Path Exists"
}
Write-Host -NoNewline "Press any key to continue.."
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

View File

@ -49,8 +49,8 @@ let python_highlight_all = 1
autocmd FileType python set sw=4 autocmd FileType python set sw=4
autocmd FileType python set ts=4 autocmd FileType python set ts=4
autocmd FileType python set sts=4 autocmd FileType python set sts=4
let g:python_host_prog = 'C:\Python27\python' let g:python_host_prog = 'C:\Python27amd64'
let g:python3_host_prog = 'C:\Python37\python' let g:python3_host_prog = 'C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64'
" Spell Checking " Spell Checking
autocmd BufRead,BufNewFile *.md set spell spelllang=en_us autocmd BufRead,BufNewFile *.md set spell spelllang=en_us
@ -78,12 +78,10 @@ call plug#begin('~/AppData/Local/nvim/plugged')
" Code Completion " Code Completion
if has('nvim') if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'zchee/deoplete-jedi'
else else
Plug 'Shougo/deoplete.nvim' Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp' Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc' Plug 'roxma/vim-hug-neovim-rpc'
Plug 'zchee/deoplete-jedi'
endif endif
Plug 'mattn/emmet-vim' " HTML editing Plug 'mattn/emmet-vim' " HTML editing