News for hackers. Stuff that matters.
Re:Vim After 11 Years by johncoltrane on Tuesday February 19, 2013 @11:34AM (#5245176)
netrw comes by default. No need to install NERDTree.
Re:Vim After 11 Years by manaskarekar on Tuesday February 19, 2013 @12:02PM (#5245420)
I was just typing out an email to the author of netrw regarding a problem I was experiencing.

Maybe someone here could help me out.

Environment:

- Lubuntu 12.10 64,

- LXterminal as well as UXTerm,

- GVim/Vim 7.3.547,

- both passive and active ftp,

- a local ftp server and http://secureftp-test.com/ to test it.

When I try to access a remote ftp directory, I can only open the directory that I typed in a path to. As soon as I navigate through the listed directories and hit enter on any, the screen splits into two horizontal panes and the top pane reads "File not found".

I tried this from Windows 7 Gvim/Vim (don't have the version handy but it was 7.3+) and it worked as expected.

From what I gather it just doesn't seem to look for the right directory after I hit enter in the list I think. Maybe it skips an extra forward slash somewhere or something?

I understand we're not really on the netrw/vim mailing list but any response would be appreciated!

Re:Vim After 11 Years by benmills on Tuesday February 19, 2013 @11:45AM (#5245266)
I've recently uninstalled NERDTree in favor of netrw and I've been presently surprised at how little I miss NERDTree and how much more productive I am on default vim installations.
Re:Vim After 11 Years by danneu on Tuesday February 19, 2013 @12:23PM (#5245574)
I used NERDTree when I was starting Vim, but uninstalling and hating it were essential steps towards Vim nirvana.

Because then I found out about ctrlp.vim and :E, two things that makes NERDTree completely useless to me.

Re:Vim After 11 Years by slurgfest on Tuesday February 19, 2013 @12:09PM (#5245462)
Was NERDTree making you unproductive? How?
Re:Vim After 11 Years by williamdix on Tuesday February 19, 2013 @12:15PM (#5245504)
It's not that NERDTree makes one unproductive. It's that using NetRW on default vim installations allows you to get going without installing NERDTree.
Re:Vim After 11 Years by brown9-2 on Tuesday February 19, 2013 @12:21PM (#5245563)
Knowledge of the ability to use netrw as a local directory browser seems to not be very widespread.
Re:Vim After 11 Years by johncoltrane on Tuesday February 19, 2013 @12:28PM (#5245620)
Thanks to bloggers everywhere.
Re:Vim After 11 Years by mtts on Tuesday February 19, 2013 @03:26PM (#5246835)
One thing NERDTree does that netrw doesn't (IIRC, haven't looked very deeply into this) is open files you select in a different window than the one that contains the file listing. I happen to find that convenient, YMMV, of course.
Re:Vim After 11 Years by johncoltrane on Tuesday February 19, 2013 @04:59PM (#5247333)
o does that. :h netrw-browse-maps
Re:Vim After 11 Years by mtts on Wednesday February 20, 2013 @02:28AM (#5249381)
Almost, but not quite. o opens a new window with the selected file, while nerdtree opens the file in the most recently used non-nerdtree window.

Also, there doesn't seem to be a way to tell netrw to create a vertical split rather than a horizontal split, which is inconvenient on modern wide screen monitors.

Re:Vim After 11 Years by johncoltrane on Thursday February 21, 2013 @01:13AM (#5255777)
Did you actually read :h netrw before giving up?

    P
opens the file in the most recent non netrw window.

    v
opens the file in a vertical split and

    :Vex
opens netw in a vertical split.
Re:Vim After 11 Years by statico on Tuesday February 19, 2013 @12:46PM (#5245753)
Good suggestion. In the article, I failed to point out that the advantage of NERDTree is its hierarchal folder view. When a project's directory structure become gigantic it's useful to see the directory structure as you edit.
Re:Vim After 11 Years by johncoltrane on Tuesday February 19, 2013 @04:44PM (#5247264)
netrw does that too: hit i to cycle through all the available listing style or add this line to your ~/.vimrc if you want the "tree" style by default:

    let g:netrw_liststyle = 4
Re:Vim After 11 Years by statico on Tuesday February 19, 2013 @05:42PM (#5247603)
Oh, cool! I'll give it a try, thanks!
Re:Vim After 11 Years by hudibras on Wednesday February 20, 2013 @05:16AM (#5249703)
Vimcasts has an episode on netrw. http://vimcasts.org/episodes/the-file-explorer/
Re:Vim After 11 Years by edanm on Tuesday February 19, 2013 @11:35AM (#5245181)
And yet, almost everyone does.
Re:Vim After 11 Years by johncoltrane on Tuesday February 19, 2013 @12:21PM (#5245565)
Thanks to the hundreds of blog posts that tell them to do so.
Re:Vim After 11 Years by fournm on Tuesday February 19, 2013 @12:44PM (#5245728)
Pretty much--I actually had no idea netrw existed since everyone always just points to NERDTree.