DEV Community

Connor Bode
Connor Bode

Posted on

2 1

Browsing files in VIM

I've once again decided to try to switch 100% to VIM as my day-to-day editor. I do a lot of work on Linux servers so it's a long-term investment.

I'm trying to share tips & tricks that might make life in VIM easier.

Browsing the file tree in VIM

This is one of those things that takes a while to get used to. Here are some things I've learned:

You can open up the file browser in the current directory using:

  • vim .

To browse the files, you can use the standard j/k to go up/down.

You can also use other standard techniques to jump around, like doing 12G to jump to line 12 in the list of files, or typing /index.html then Enter to search & jump to the index.html file.

To open a file, press Enter on the selected file.

Once you're editing a file, you can type :b# to exit back to the file tree.

That's all for now. I'll try to post more VIM tips as I learn more.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (2)

Collapse
 
jingxue profile image
Jing Xue β€’

Recommend the nerdtree plugin if you are going to use vim full time.

Collapse
 
connorbode profile image
Connor Bode β€’

I'm hoping not to use any plugins as I want to be efficient without needing to install a bunch of things on remote machines!

But this looks great and I've heard it's very popular!

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay