ex - Vim command for "edit a copy of this file" -


a pattern seem following right is:

  • edit file until it
  • :w another-file use starting point another-file
  • :e another-file polish another-file

is there existing ex command latter 2 steps @ once? :writeandedit another-file?

i can fake 1 using vimscript, want know if there's existing command.

could :saveas job?

:sav[eas][!] [++opt] {file}             save current buffer under name {file} , set             filename of current buffer {file}.              previous name used alternate file name. 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -