Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Is there any way to open file with vim in the terminal without typing file name, but for example then I see in the directory my file, go with arrow keys or something like that?

I think I saw one of my old buddy choosing files with keys, but I am not very sure of that.

share|improve this question

2 Answers 2

In vim, if you type ":e ." (without the quotes), it will bring up the netrw file browser. You can select and open files from there. If you type "i" (without quotes), it will cycle through various views of the directory, including a simple "tree" file browser. Type ":help netrw" for details.

share|improve this answer

Your friend would have been using a shell script.

My belief is that all file managers suck. There are no exceptions to this. So, for the past few months, I've been sourcing a file with a bunch of tricks I've invented / found through browsing the web to make using just bash as a file manager much more convenient.

share|improve this answer
    
thank yoy very much :) it should help :)))) –  FulguraFrango Nov 24 '13 at 7:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.