RE: full path with ls on first file
>-----Original Message-----I like to see full paths also ...
>From: Antoine J. Mechelynck [mailto:antoine.mechelynck@...]
>Sent: Monday, November 01, 2004 10:06 AM
>Subject: Re: full path with ls on first file
>tramblab <tramblab@...> wrote:
>> thanks for the answer. I did not know this expand function...yet:-)
>> but i need a little bit more!
>> i open the first file as described previously.
>> i now open a second file from an other directory.
>> i open a third file from a different directory.
>> in the vim window, i can see the third file.
>> then ':ls' --> all files are listed with full path, but the
>> My point is that I would like to see the full path for the
>":ls", like the statusline, don't show the full path for files
>which are in (or, IIUC, under) the current directory. A
>possibility would be to temporarily change to some
>out-of-the-way directory while you're invoking the ":ls" command.
> :help :cd
> :help :lcd
>When you're not straying off-topic, please write to the
>mailing list, not only by private mail: I'm just one user of
>the Vim editor and I don't know everything. Oh, and by the
>way, a previous mail I sent to you at tramblab -at- yahoo.com
>got rejected (user unknown).
The easiest way to accomplish this is to invoke vim in a directory that
is outside your source tree (or above the actual source files). I'm on
Windows, so I create a shortcut for vim which has c:\claims as the
"Start in:" directory, while my source is in w:\source\..., which is a
mapped drive on a linux system accessed via samba. In c:\claims I put
any support files I need: _vimrc, etc., and certain other vimmish files
show up there as well (viminfo, session, etc.). This is my "project"
directory, and since it isn't in my source tree, ALL source files loaded
into buffers have fully-qualified paths. Voila'!
If you use gnu-utils like locate and lid, you will have to:
... or some such. The above is from inside vim, but I run a nightly
.bat that does these outside of vim.
- Tramblay Bruno <tramblab@...> wrote:
> hallo Antoine,[...]
> thanks for your patience.
> it was just the first time I was using this group feature and I
> thought the reply issued from this group page will automatically send
> the mail to the list... Now I know.
"Reply to Sender" sends mail only to the author of the post (not to the
"Reply to All" sends mail to the list, and also sends a copy to the author
and to anyone else mentioned in the "To:" or "Cc:" of the post.
On Sunday 31 October 2004 19:40, you wrote:
> I have been using gvim for some weeks and i am
> wondering if it is possible to get the full path of a
> single opened file with 'ls'.
> W2k, vim6.3.
> >From Windows Explorer, I open a text file with vim(no
> vim window opened before). Then ':ls' --> I get only
> the name of the file and not the full path. Can I
> change this behavior?
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.