Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 598 Bytes

rename-a-file-through-netrw.md

File metadata and controls

23 lines (17 loc) · 598 Bytes

Rename A File Through netrw

You can browse files in a directory through Vim using netrw. This can be done by editing a directory with Vim:

$ vim src/

You'll see a listing of the files and directories in src:

app/
index.js
README.md
utils/

You can move your cursor over one of those files and hit R to rename it. A prompt will appear at the bottom of your Vim session with the file's current name spelled out. You can edit inline and then hit enter to apply the renaming.

source