How to Copy/Duplicate a File Duplicate in Vim (netrw+vinegar)
Pavol Z. Kutaj

Pavol Z. Kutaj @pkutaj

About: A public interface of my current learnings. The focus is on everything from vim, python to cloud. Imperfect. Impersonal. Never too far from my terminal.

Location:
Brno, Czech Republic
Joined:
Jan 26, 2021

How to Copy/Duplicate a File Duplicate in Vim (netrw+vinegar)

Publish Date: Jan 16
0 0

USECASE

The aim of this page 📝 is to explain how to duplicate a file in Vim using the netrw file explorer with the vim-vinegar plugin.
Spent way too much time, given that R is shorthand for renaming the file.

Image description

  • Use vim-vinegar to enhance netrw usability.
  • Press - to open netrw.
  • Mark the file with mf.
  • Copy the file with mc.
  • Input the new file name and press Enter.

LINKS

Comments 0 total

    Add comment