All threads / How does Chris open NERDTree by default when he runs "mvim ." ?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How does Chris open NERDTree by default when he runs "mvim ." ?

Liam Elliott asked in Tips

When I open a directory with mvim, I don't seem to be getting nerdtree. Instead, I get the regular directory buffer that is styled like nerdtree. When I open a file from this regular tree view, it replaces the tree viewer instead of opening beside it. How can I open directories with NERDTree by default in macvim?

Hey Liam!

So I use Janus for Vim. I'm guessing maybe it's a config option that comes by default then to do that if yours is different. They ship a lot of good defaults and I originally used it to just replicate my workflow from Sublime into Vim. I actually don't even know all the details of how they configure everything since it all worked out really nicely from a fresh install haha.

Maybe you can find their NERDTree config in the repo or you might like to just try out Janus itself.

I recommend using RubyMine , it's not free but worth the money.
Especially if you're taking Ruby/Rails as a serious job.
They also have a pretty good vim mode (coming from a vim only guy).

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.