How do you open a file from within Vim?

后端 未结 3 1839
野趣味
野趣味 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条回答
  •  猫巷女王i
    2021-02-01 01:19

    Also, to open multiple files (or just one, so I tend to use this for opening a single file, since :e fails to open multiple files)

    :n file1 file2
    

    :n resets the argument list so it is as if you had entered them on the command line (so commands like :rew will work with this list), but :e does not.

提交回复
热议问题