🖥

Vim — 最初からインサートモードでファイルを開く

に公開
vim some_file -c 'startinsert'

-c オプションって何?

ファイルをロードした後に実行するコマンドを決められる。

$ vim --help | grep '\-c '
   -c <command>		Execute <command> after loading the first file

( first file ってなんだろう )

Ref

Versios

  • VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug 7 2018 21:58:18)
  • Mac OS X High sierra

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2018-08-23

Discussion