History Report a problem
Article Edit this page Discussion

File explorer

From Vim Tips Wiki

Jump to: navigation, search
 

Tip 1182Previous TipNext Tip

Created: March 22, 2006 Complexity: basic Author: orsenthil Minimum version: 5.7 Karma: 34/16 Imported from: Tip#1182


The command :Explore opens the file explorer window.

Select a file or directory name and press Enter to open that file or directory.

To return to the explorer window, press Ctrl-^ (usually Ctrl-6).

You can also "edit" a directory to explore that directory. For example, :e .. lists files in the parent directory.

[edit] Other approaches

In normal mode, type :e then press Space and Ctrl-D. That will list file names in the current directory. You can type a name and press Enter to edit that file.

If, for example, you want a name that starts with "get" type :e get then press Tab repeatedly, or Ctrl-D to list all matches.

Another possibility is to use a mapping like this:

map <F2> :!ls<CR>:e

[edit] References

[edit] Comments

Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Terminator Wiki
Legend of Zelda Wiki
Flash Gordon
Everquest II Wiki
Yo-Yo Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"File explorer"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation