Friday, March 1, 2013

Re: can :sp borrow something from :b

On 1 March 2013 16:38, Ben Fritz <fritzophrenic@gmail.com> wrote:
> On Friday, March 1, 2013 2:36:45 PM UTC-6, Jim Green wrote:
>> Dear list:
>> assume i have two buffers in my vim session
>>
>> 1 abc.txt
>> 2 xyz.txt
>>
>> I am currently in buffer 1 abc.txt
>>
>> I can use :b z and tab completion to open buffer 2 xyz.txt because vim is smart to determine that only buffer 2 has letter z in its name
>>
>> now I want use :sp z to have the same smartness but it doesn't seem to work that way. I can only sp #2 to split the second buffer.
>>
>> Could anyone share some ideas?
>>
>> Thanks!
>> Jim.
>
> Use :sb (short for :sbuffer) instead of :sp or :b

this is great. have used vim for about 10 years and never heard about
such a nice thing. thanks!
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: