How do I rename files directly from Vim's built-in netrw file browser?
R (in netrw)
Vim's built-in file explorer netrw lets you rename files and directories without leaving the editor.
R (in netrw)
Vim's built-in file explorer netrw lets you rename files and directories without leaving the editor.
:set suffixesadd+=.js,.ts,.jsx,.tsx
The gf (go to file) command opens the file under the cursor, but it fails when the path lacks an extension — common in JavaScript/TypeScript imports like impo
navigation #navigation #config #editing #buffers #file-management
oil.nvim: edit directory listing like a buffer
oil.
:find filename
The :find command searches for a file by name across all directories in your path setting and opens it.
buffers-windows #buffers #file-management #navigation #workflow
"#p or <C-r># in insert mode
The # register always contains the name of the alternate file — typically the file you were editing just before the current one.
:X
The :X command sets an encryption key for the current file.
command-line #command-line #security #file-management #ex-commands
:e scp://user@host//path/to/file
Vim's built-in netrw plugin supports editing files over the network using protocols like SCP, SFTP, and HTTP.
:Explore / :Vexplore / :Sexplore
Vim ships with netrw, a built-in file explorer that lets you browse directories, open files, create new files, rename, and delete — all without plugins.
buffers-windows #navigation #buffers #file-management #netrw #productivity
gf
The gf command ("go to file") opens the file whose path is under the cursor.
navigation #navigation #normal-mode #buffers #productivity #file-management
<C-x><C-f>
The command triggers filename completion in insert mode.
editing #editing #insert-mode #completion #file-management #productivity