Friday, October 26, 2012

Re: Open a file from a list of files in a vim buffer

On Friday, October 26, 2012 2:47:14 PM UTC-4, Ben Fritz wrote:
> On Friday, October 26, 2012 1:41:02 PM UTC-5, Tim Chase wrote:
>
> > On 10/26/12 13:28, Ben Fritz wrote:
>
> >
>
> > > Ok, so first, the fastest way to do exactly what task you asked
>
> > > about (splitting a window with a filename already in your buffer)
>
> > > is to put the cursor on the file name, and type CTRL-W followed
>
> > > by f. See :help CTRL-W_f,
>
> >
>
> > Also be sure to read up on
>
> >
>
> > :help 'isfname'
>
> >
>
> > as some characters may be valid filename-characters but aren't in
>
> > this setting (or vice-versa).
>
> >
>
>
>
> Good point. If you hit this situation, the workaround is easy. Just split the window, visually select the entire file path, and use the gf command. See :help v_gf.

Superb. CTRL+W f works like a charm. I wil also experiment on other proposed solutions for fun and profit:)

Thank you, folks!

--
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:

Post a Comment