I browse code at work; and for that specific use, I wouldn't create
any new files. Rather, I keep opening files (even though I've tags and
cscope) by their names.

One fine day I thought I'll use Explorer, and noticed that it doesn't
work in the way I expected it to. And I thought I'll make a post and
take help finding out what's going wrong. Of course there are more
than one way to do things, and it's just that I happened to try it
this way :)

> current directory:
>         :new ./
> directory of the current file:
>         :new %:p:h
> your home directory:
>         :new ~/
> etc.

Thanks for this. I was kind of stuck with Explorer didn't explore
further.

Jeenu

On Nov 15, 12:26 am, Tony Mechelynck <[EMAIL PROTECTED]>
wrote:
> On 13/11/08 19:02, Jeenu wrote:
>
> > The problem with using BufEnter is that I see Explore running on every
> > other buffer. I.e. I don't see any file contents, but all buffers
> > would be filled with directory and file listing.
>
> > Actually the reason I want this auto command is that I don't need to
> > type the full path to start editing it. Instead, I thought I would
> > say :new and I can just browse and pick the file to edit.
>
> > Thanks
> > Jeenu
>
> Don't you ever create a new file from scratch? Or use an empty buffer
> for things which you want to use temporarily but never even write to
> disk? I often do: when I want to paste into a program other than Vim
> some character which I don't know how to produce with my admittedly
> versatile but not universal Belgian keyboard, for instance the French œ
> (oe) digraph which you just saw, or the "vulgar" ¼ ⅕ ¾ fractions, I open
> a [No Name] buffer in a new split-window in Vim, type the required
> characters there using digraphs, keymaps, or even |i_CTRL-V-digit|, and
> bring them back over the clipboard. Then :q! is my friend to close the
> temporary split window. No need to wake up netrw in all that. When I do
> want a directory listing, I use ":new ./" or maybe ":sv $VIMRUNTIME",
> IOW I explicitly "edit a directory".
>
> If you want the current directory, or the directory of the current file,
> you don't need to type its full path anyway:
>
> current directory:
>         :new ./
> directory of the current file:
>         :new %:p:h
> your home directory:
>         :new ~/
> etc.
>
> Best regards,
> Tony.
> --
> ARTHUR: (as the MAN next to him is squashed by a sheep) Knights!  Run away!
>     Midst echoing shouts of "run away" the KNIGHTS retreat to cover with
> the odd
>     cow or goose hitting them still.  The KNIGHTS crouch down under cover.
>                   "Monty Python and the Holy Grail" PYTHON (MONTY)
> PICTURES LTD
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to