Quantcast
Channel: How to save as a new file and keep working on the original one in Vim? - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by tivn for How to save as a new file and keep working on the original...

The following command will create a copy in a new window. So you can continue see both original file and the new file.:w {newfilename} | sp #

View Article


Answer by Jianwen W. for How to save as a new file and keep working on the...

Thanks for the answers. Now I know that there are two ways of "SAVE AS" in Vim.Assumed that I'm editing hello.txt.:w world.txt will write hello.txt's content to the file world.txt while keeping...

View Article


Answer by SergioAraujo for How to save as a new file and keep working on the...

After save new file pressCtrl-6This is shortcut to alternate file

View Article

Answer by wilhelmtell for How to save as a new file and keep working on the...

Use the :w command with a filename::w other_filename

View Article

How to save as a new file and keep working on the original one in Vim?

Whenever I use the :sav command, it saves the file with a new name and opens the new file open in Vim. Is it possible to save the file with a new name but keep the original one open for editing?

View Article

Browsing latest articles
Browse All 5 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>