From 0bbb2976aa01353b376be5cf7931dae8364ea204 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 4 Aug 2020 14:42:43 +0800 Subject: [PATCH] [feature] editor settings for Powershell --- config/nvim/ginit.vim | 2 ++ win/profile.ps1 | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 config/nvim/ginit.vim diff --git a/config/nvim/ginit.vim b/config/nvim/ginit.vim new file mode 100644 index 0000000..3ea44b4 --- /dev/null +++ b/config/nvim/ginit.vim @@ -0,0 +1,2 @@ +Guifont 等距更纱黑体 T SC:h12 +source $VIMRUNTIME/mswin.vim diff --git a/win/profile.ps1 b/win/profile.ps1 index d8d3139..2f3632a 100644 --- a/win/profile.ps1 +++ b/win/profile.ps1 @@ -5,6 +5,8 @@ Set-PSReadLineOption -EditMode Emacs $Env:Path += ";$PSScriptRoot\bin" +$Env:KUBE_EDITOR = 'nvim' +$Env:EDITOR = 'nvim' Set-Alias -Name k kubectl $isPs7 = $host.Version.Major -ge 7 if ( $isPs7 ) {