Thursday, October 6, 2011

Netrw and filtering

I saw :help netrw-star and read that text to understand that netrw can
filter for files matching a pattern in a given directory.

But I cannot get it to work.

I tried:

:Explore ~/vimfiles/*.vim
(nothing happens; no netrw window, no error message, nothing)

:Explore $HOME/vimfiles/*.vim
(same result; nothing happens)

:Explore C:/Users/ben/vimfiles/*.vim
(same result)

:Explore /Users/ben/vimfiles/*.vim
(same result)

:Explore */~/vimfiles/*.vim
(error message: **warning** (netrw) no files matched)

:Explore */$HOME/vimfiles/*.vim
(Netrw opens to the WRONG DIRECTORY, C:/Program Files/Vim/vim73/doc,
showing all the .txt files therein)

:Explore */C:/Users/ben/vimfiles/*.vim
(error message: **warning** (netrw) no files matched)

:Explore *//Users/ben/vimfiles/*.vim
(C:/Program Files/vim/vim73/doc/arabic.txt opens with a statusline
reading "Match 1 of 43"...I'm REALLY confused here)

:Explore */Users/ben/vimfiles/*.vim
(error message: **warning** (netrw) no files matched)

What am I doing wrong here? How am I supposed to use patterns with
netrw? And am I wrong about the filtering behavior?

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: