How do you open a file from within Vim?

后端 未结 3 1863
野趣味
野趣味 2021-02-01 00:59

I know how to open a file in Vim from a terminal (vim fileName). What I can\'t figure out is how to open a file when I\'m already within Vim.

I tried :

3条回答
  •  旧巷少年郎
    2021-02-01 01:27

    :e

    or

    :Ex

    lets you browse for the file from the given directory.

    :Ex on its own will open the pwd.

    :enew

    will create an empty buffer.

提交回复
热议问题