Vim Tips Wiki
(→‎How to: add comments section and note about commands whose name isn't quite as fun)
m (Reverted edits by 172.15.184.90 (talk | block) to last version by Fritzophrenic)
 
(2 intermediate revisions by 2 users not shown)
Line 21: Line 21:
   
 
A prompt is shown that the selected file will be moved (renamed), and the original full path for the destination is shown. Change that path as wanted and press Enter to move the file, or Esc to cancel.
 
A prompt is shown that the selected file will be moved (renamed), and the original full path for the destination is shown. Change that path as wanted and press Enter to move the file, or Esc to cancel.
 
==Comments==
 
   
 
==References==
 
==References==

Latest revision as of 00:46, 9 February 2015

Proposed tip Please edit this page to improve it, or add your comments below (do not use the discussion page).

Please use new tips to discuss whether this page should be a permanent tip, or whether it should be merged to an existing tip.
created December 13, 2011 · complexity basic · author Antonio Carlos De Souza · version 7.0

You don't need a shell window to move a file. Vim has an integrated file explorer you can use for file operations. Vim's file explorer can be acessed using :Explore in normal mode (or just enter :e. which is a command to edit the current directory). It should list files in the current directory.

How to[]

In normal mode type :Sex to split the current window and open Explore above it. Or :Sex! to split vertically. If the current window has no file, the current directory is opened (as shown by :pwd). (Also see :Hex, :Vex, and :Tex commands for slight variations).

Navigate to a file name using hjkl, or arrow keys.

Press R to rename a file.

A prompt is shown that the selected file will be moved (renamed), and the original full path for the destination is shown. Change that path as wanted and press Enter to move the file, or Esc to cancel.

References[]

Comments[]