LoginSignup
1
1

More than 3 years have passed since last update.

備忘録)PowerShellでVimを使う

Last updated at Posted at 2020-06-06

実行環境

windows10
vim8.2.0577

方法

1.vimインストール、こちらから
2.
powershellで以下のコマンドを実行
> get-executionpolicy
RemoteSignedが返ってきたらOK→Step3へ

RestrictやBypassの場合は
set-executionpolicy remotesigned
を実行

3.
$profile
を実行。設定ファイルの場所を確認
帰ってきたパスをエクスプローラーで開き、profile.ps1ファイルをエディタで編集

以下を追加
set-alias vi 'C:\Program Files (x86)\Vim\Vim82\vim.exe'
set-alias vim 'C:\Program Files (x86)\Vim\Vim82\vim.exe'

C:\Program Files (x86)\Vim\Vim82\vim.exeはvimをインストールした場所を入力。

4.powershellでvim or vi 実行

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1