Is there a way to make Vim use only one open file buffer per GUI tab?

For example, my Vim has GUI tabs enabled, so... 
1) I open Vim.
2) I open a file; say, my vimrc.
3) I go into normal mode (as opposed to INSERT mode), and pull up :help
4) That tab now displays both my vimrc and help.

How can I make it so that :help would be opened in a new tab, leaving vimrc
as the only open buffer in the original tab, so I have something like: TAB1:
vimrc TAB2: help

However, I'd also like to preserve the ability to open non-file buffers in
the same tab (like taglist, NERDtree, etc). 

I'm having a really hard time explaining this, and I tried to be as clear as
possible. Please excuse my unorthodox grammar, and I'll explain more at
request.

Now, two easier questions:

1) How can I set it so that buffers like TagList open in vertical buffers
instead of horizontal?

2) Is there a way to limit the amount of blank lines Vim puts at the end of
files? Currently, when I scroll to the bottom of a file, Vim allows me to
scroll all the way to having the last line at the top of the editing area.
I'd like if it just left five or so lines instead.

3) For some reason, when I open files, Vim starts at a random place.
Sometimes it starts at the top, sometimes 60% through the file, etc. How do
I make it start at the top every time?

I know, a lot of questions. I'm still getting the hang of this.
-- 
View this message in context: 
http://www.nabble.com/Four-vimrc-questions%3A-converting-buffers-to-tabs%2C-making-buffers-vertical%2C-changing-open-start-position-and-limiting-empty-lines-tp24839122p24839122.html
Sent from the Vim - General mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to