🖥
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
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
About
チャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。
公開日時
2019-04-16
Discussion