🖥

Vim | Start editing a non-existent file in a single shot

に公開

Solution

Even files that do not exist. You can start editing suddenly as a "new file".

$ vim example.txt

image

You just have to save. ( :x )

If you do not want to create a file, you can skip without saving. ( :q! )

problem

The procedure of "creating files in advance" is troublesome.

$ touch example.txt

$ vim example.txt

environment

  • vim 7.2.411

Original by

Vim | 存在しないファイルの編集を一発で始める

About

About this translattion

チャットメンバー募集

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

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

Twitter

https://twitter.com/YumaInaura

公開日時

2019-04-16

Discussion