Larson, David wrote:
> If I set showtabline=2 in my .gvimrc, the nice intro page that shows up
> when vim is started disappears. Is this expected?
>
> Thanks,
> David
There are other circumstances when it doesn't appear either. The attached
plugin helps some: it tries to run the ":intro" command as late as possible
when starting up. The filename intentionally starts with zz so that it be run
after any other plugins on systems where plugins are run in alphabetical
sequence. Drop it (on Unix-like systems) in ~/.vim/after/plugin/ or (on
Windows) in $HOME/vimfiles/after/plugin -- and create the directories first if
they don't exist yet.
AFAIK, this plugin can be used with any Vim version starting at 5.0 (and with
earlier versions, where the :intro command was not defined, it will just do
nothing).
For a more radical solution, remove the "if" clause starting at line 25 (until
the corresponding "endif").
Best regards,
Tony.
--
There once was a member of Mensa
Who was a most excellent fencer.
The sword that he used
Was his -- (line is refused,
And has now been removed by the censor).
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
" Custom global plugin to display the Vim splash screen
" even when started with one or more editfiles.
"
" Name: zzsplash.vim
" Version: 0.1
" Maintainer: Tony Mechelynck <[EMAIL PROTECTED]>
" Last Change: Wed 30 Aug 2006
"
" Installation instructions: Just drop it in the after/plugin subdirectory of
" the directory named last in the 'runtimepath' option.
" This plugin intentionally has a name starting in "zz" so the VimEnter
" autocommand which it creates (below) is run as late as possible at the end
" of startup.
" The :intro command did not exist prior to version 5.
if version < 500
finish
endif
" If there is no loaded buffer, we can let Vim do it.
" But the function we need was only defined in version 5.1
" (or under another name starting at 5.2, but the older name
" was retained).
if (version >= 501) && (buffer_name("") == "")
finish
endif
" The VimEnter event was introduced in version 5.1
" Only define an autocommand if it is available
if has("autocmd") && (version >= 501)
augroup zzsplash
au VimEnter * intro
augroup END
finish
endif
" come here only if the current Vim was compiled with -eval
" or if it does not possess the VimEnter event.
" In that case we haven't done anything yet.
intro