3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Window端末でvimtutorをコンソール上で実行する

Posted at

Windowsにvim 8.2.4647をインストールした環境で、コマンドvimtutorを実行するとgvimvimtutorが起動します。

image.png

これはvimtutor.batが実行されてvimtutorが起動されているわけですが。

image.png

たまにvimtutorをやろうと思った際に、gvimではなくコンソール上でvimtutorをやりたいと思い、そもそもvimtutor.batはどうなってるの? と眺めてみたら、そのものズバリなオプションが冒頭に書いてありましたので忘備録。

:: Usage: vimtutor [-console] [xx]
::
:: -console means gvim will not be used
:: xx is a language code like "es" or "nl".
:: When an xx argument is given, it tries loading that tutor.
:: When this fails or no xx argument was given, it tries using 'v:lang'
:: When that also fails, it uses the English version.

上記のように記載あり、gvimを使わないで起動するには-consoleオプションを付ければよいようです。

vimtutor -console

image.png

Windows Terminalのプロファイルに追加してみる

せっかく? なのでWindows Terminalのプロファイルに追加して、Windows Terminalのタブでvimtutorが開くように設定してみます。

image.png

image.png

総評

batファイル読みたくないなと思いつつ開いたら、欲していたものが冒頭に書いてありました。

3
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?