Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I save the current file in another name (save as) and edit a new file?

edit file
0
Posted

How do I save the current file in another name (save as) and edit a new file?

0

Alternatively, you can also do: :w :edit # You can also use the “:file” command, followed by “:w” command: :file :w For more information, read :help :saveas :help :file_f :help :w 5.3. How do I change the current directory to the directory of the current file? You can use the following command to change the current directory to the directory of the current file: :cd %:p:h To automatically change the current directory to the directory of the current file, use the following autocmd: :autocmd BufEnter * cd %:p:h For more information, read :help :cd :help :lcd :help filename-modifiers :help autocommand 5.4.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123