The 2007 Vim calendar

2006-12-11 Thread Bram Moolenaar

Dear Vim users,

The traditional Vim calendar has been updated for 2007!

This is a desktop calendar for 2007, made from one sheet of paper.
After folding, one side contains a useful 12-month calendar.
On the other side there is brief information about ICCF-Holland,
Vim and A-A-P.

English, A4: http://www.moolenaar.net/2007_en_a4.pdf
English, Letter: http://www.moolenaar.net/2007_en_le.pdf
Dutch, A4:   http://www.moolenaar.net/2007_nl_a4.pdf

Each file is in PDF and about 180 Kbyte.


I'm afraid the problem with scripts on www.vim.org has not been solved
yet.  We are waiting for SourceForge support...


Happy holidays!

-- 
It is illegal for anyone to try and stop a child from playfully jumping over
puddles of water.
[real standing law in California, United States of America]

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///


The 2007 Vim calendar

2006-12-11 Thread Bram Moolenaar

Dear Vim users,

The traditional Vim calendar has been updated for 2007!

This is a desktop calendar for 2007, made from one sheet of paper.
After folding, one side contains a useful 12-month calendar.
On the other side there is brief information about ICCF-Holland,
Vim and A-A-P.

English, A4: http://www.moolenaar.net/2007_en_a4.pdf
English, Letter: http://www.moolenaar.net/2007_en_le.pdf
Dutch, A4:   http://www.moolenaar.net/2007_nl_a4.pdf

Each file is in PDF and about 180 Kbyte.


I'm afraid the problem with scripts on www.vim.org has not been solved
yet.  We are waiting for SourceForge support...


Happy holidays!

-- 
It is illegal for anyone to try and stop a child from playfully jumping over
puddles of water.
[real standing law in California, United States of America]

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///


Re: Calendar ?

2006-11-29 Thread Robert Hicks
Usage question. I have a custom statusline. That statusline also shows 
up in the Calendar pane and in the diary pane. Is there a way I can 
restrict it from doing that?


Robert



Re: Calendar ?

2006-11-29 Thread A.J.Mechelynck

Robert Hicks wrote:
Usage question. I have a custom statusline. That statusline also shows 
up in the Calendar pane and in the diary pane. Is there a way I can 
restrict it from doing that?


Robert




If 'statusline' is nonempty, your custom status line will show on all status 
lines, for all windows; but you can set it to display various things depending 
on anything that you can test in them (such as the buffer name or the local 
value of 'buftype'). Just avoid too complex computations, because the status 
line is evaluated very often.



Best regards,
Tony.


Re: Calendar ?

2006-11-29 Thread Bill McCarthy
On Wed 29-Nov-06 11:40am -0600, Robert Hicks wrote:

 Usage question. I have a custom statusline. That statusline also shows
 up in the Calendar pane and in the diary pane. Is there a way I can
 restrict it from doing that?

You can have a local status line for those windows.  Perhaps
something like:

  au BufWinEnter __Calendar,*[0-9].cal setl stl=%t

-- 
Best regards,
Bill



Re: Calendar ?

2006-11-29 Thread Bill McCarthy
On Tue 28-Nov-06 10:58am -0600, Charles E Campbell Jr wrote:

 AsNeeded doesn't set up transparent map use; my reasoning
 is that one may wish to have several plugins which have
 conflicting maps.  Often one only wants to run one such
 plugin at a time.  In particular, the cvscommand plugin
 and Calendar have conflicting maps.  If I had AsNeeded
 attempt to set up transparent map use, then AsNeeded would
 inherit the conflicting map problem and issue complaints
 at startup.

Perhaps we are using the term transparent with different
meanings.  I have a mapping in my vimrc for a horizontal
calendar display:

  nmap unique silent leaderch :CalendarHCR

When I start Gvim and type :scriptnames, I see no references
to calendar.vim.

I then type \ch (my leader is unmodified) and the calendar
is displayed.  Now :scriptnames shows that calendar.vim was
sourced from AsNeeded.

That's what I am calling transparent - and I very much
like it that way.

Thanks for your response and thanks for creating AsNeeded.

-- 
Best regards,
Bill



Re: Calendar ?

2006-11-29 Thread A.J.Mechelynck

Bill McCarthy wrote:

On Wed 29-Nov-06 11:40am -0600, Robert Hicks wrote:


Usage question. I have a custom statusline. That statusline also shows
up in the Calendar pane and in the diary pane. Is there a way I can
restrict it from doing that?


You can have a local status line for those windows.  Perhaps
something like:

  au BufWinEnter __Calendar,*[0-9].cal setl stl=%t



That won't work if the OP wants to set the st.l. for Calendar differently than 
from other (split) windows. A construct like


 :set stl=something%{(buftype\ ==\ \\)?\\:MyStatusString1()}somethingelse

might work.


Best regards,
Tony.


Re: Calendar ?

2006-11-29 Thread Bill McCarthy
On Tue 28-Nov-06 11:13am -0600, Charles E Campbell Jr wrote:

 BTW, here's what I use in my .vimrc to allow cvscommand and Calendar
 to co-exist:

  cvscommand {{{2
 nmap Leadercva PlugCVSAdd
 nmap Leadercvn PlugCVSAnnotate
 nmap Leadercvc PlugCVSCommit
 nmap Leadercvd PlugCVSDiff
 nmap Leadercve PlugCVSEdit
 nmap Leadercvi PlugCVSEditors
 nmap Leadercvg PlugCVSGotoOriginal
 nmap LeadercvG PlugCVSGotoOriginal!
 nmap Leadercvl PlugCVSLog
 nmap Leadercvr PlugCVSReview
 nmap Leadercvs PlugCVSStatus
 nmap Leadercvt PlugCVSUnedit
 nmap Leadercvu PlugCVSUpdate
 nmap Leadercvv PlugCVSVimDiff
 nmap Leadercwv PlugCVSWatchers
 nmap Leadercwa PlugCVSWatchAdd
 nmap Leadercwn PlugCVSWatchOn
 nmap Leadercwf PlugCVSWatchOff
 nmap Leadercwr PlugCVSWatchRemove

  calendar {{{2
 nmap Leadercal :unmap Leadercalbarunmap Leadercahbarnmap
 Leadercal PlugCalendarVbarnmap Leadercah 
 PlugCalendarHbarcall Calendar(0)cr
 nmap Leadercah :unmap Leadercalbarunmap Leadercahbarnmap
 Leadercal PlugCalendarVbarnmap Leadercah 
 PlugCalendarHbarcall Calendar(1)cr

 Both of these plugins reside in my AsNeeded directory.

Thanks for those interesting ideas!

-- 
Best regards,
Bill



Re: Calendar ?

2006-11-29 Thread A.J.Mechelynck

Bill McCarthy wrote:

On Wed 29-Nov-06 3:19pm -0600, you wrote:


Bill McCarthy wrote:

On Wed 29-Nov-06 11:40am -0600, Robert Hicks wrote:



Usage question. I have a custom statusline. That statusline also shows
up in the Calendar pane and in the diary pane. Is there a way I can
restrict it from doing that?



You can have a local status line for those windows.  Perhaps
something like:

  au BufWinEnter __Calendar,*[0-9].cal setl stl=%t



That won't work if the OP wants to set the st.l. for Calendar differently than
from other (split) windows. A construct like


I'm not seeing that, Tony.  Starting Gvim with my normal
stl, if I open a calendar window it has the special stl.
Even if I do a :sp foo from the calendar window, the
window for foo has the normal stl.

Clicking on a calendar date with a diary entry brings up a
diary window with the special stl.  Doing a :sp bar from
that window (or any other window) gives me the normal stl in
the bar window.



So BufWinEnter is fired before evaluating the status line? Makes sense if only 
the current status line is ever evaluated. I already knew the status line was 
evaluated in the context of its own window but I thought all status lines 
would be recomputed every X milliseconds. I guess this would be overkill after 
all. Thanks for the insight.


I still wonder whether BufWinEnter is called before redisplaying the status 
line of a non-current window which has just been scrolled or resized with the 
mouse so that the All Top nn% Bot flag has changed. Or what happens 
when a custom status line contains %{} expressions which may depend on 
global variables changed by actions in a different window.



Best regards,
Tony.


Re: Calendar ?

2006-11-27 Thread Bill McCarthy
On Mon 27-Nov-06 12:30am -0600, Yegappan Lakshmanan wrote:

 On 11/26/06, Bill McCarthy [EMAIL PROTECTED] wrote:
 On Sun 26-Nov-06 8:55pm -0600, Yegappan Lakshmanan wrote:

  On 11/24/06, Bill McCarthy [EMAIL PROTECTED] wrote:

  From calendar.vim (which is in my AsNeeded directory):
   -

 snip

  When I placed the above mappings in the .vimrc file, the mappings
  for \cal and \caL are removed and the new mappings \cv and \ch
  open the calendar window.

 Only If I move calendar.vim from AsNeeded/ to plugin/ can I
 duplicate those results.  As my question begins, the plugin
 is in AsNeeded/.  I am trying to figure out how to eliminate
 the duplication with the plugin in AsNeeded/.

 Are \cal and \caL not defined when the plugin is in
 AsNeeded?

 Yes. The plugins under the AsNeeded (and autoload) directory
 are sourced only when an undefined function or a command is
 invoked. If you invoke the :Calendar command, then your
 maps should start to work.

True, if I define (in vimrc):

nmap unique Leaderch PlugCalendarH
nmap unique Leadercv PlugCalendarV

Then AsNeeded is not transparent.  One needs to first
execute a command - not desirable.

If instead, I define:

nmap unique Leaderch :CalendarHCR
nmap unique Leadercv :CalendarCR

Then there is no need to execute a command before invoking a
mapping - AsNeeded is transparent.  However the default
mappings inside calendar.vim take effect, so there are now
two mappings to each of the commands.

-- 
Best regards,
Bill



Re: Calendar ?

2006-11-26 Thread Bill McCarthy
On Sun 26-Nov-06 8:55pm -0600, Yegappan Lakshmanan wrote:

 On 11/24/06, Bill McCarthy [EMAIL PROTECTED] wrote:

 From calendar.vim (which is in my AsNeeded directory):
  -

snip

 When I placed the above mappings in the .vimrc file, the mappings
 for \cal and \caL are removed and the new mappings \cv and \ch
 open the calendar window.

Only If I move calendar.vim from AsNeeded/ to plugin/ can I
duplicate those results.  As my question begins, the plugin
is in AsNeeded/.  I am trying to figure out how to eliminate
the duplication with the plugin in AsNeeded/.

Are \cal and \caL not defined when the plugin is in
AsNeeded?  (If you move it there, don't forget to do a
MkAsNeeded and, if you are not using the latest version of
AsNeeded, source plugin/ANtags.vim.)

BTW, I split plugin/calendar.vim into:

plugin/calendarPlugin.vim
autoload/calendar.vim

This give a nice small footprint for the plugin and thus
obviates the need for placing the original in AsNeeded.

-- 
Best regards,
Bill



Re: Calendar ?

2006-11-26 Thread Yegappan Lakshmanan

Hi Bill,

On 11/26/06, Bill McCarthy [EMAIL PROTECTED] wrote:

On Sun 26-Nov-06 8:55pm -0600, Yegappan Lakshmanan wrote:

 On 11/24/06, Bill McCarthy [EMAIL PROTECTED] wrote:

 From calendar.vim (which is in my AsNeeded directory):
  -

snip

 When I placed the above mappings in the .vimrc file, the mappings
 for \cal and \caL are removed and the new mappings \cv and \ch
 open the calendar window.

Only If I move calendar.vim from AsNeeded/ to plugin/ can I
duplicate those results.  As my question begins, the plugin
is in AsNeeded/.  I am trying to figure out how to eliminate
the duplication with the plugin in AsNeeded/.

Are \cal and \caL not defined when the plugin is in
AsNeeded?



Yes. The plugins under the AsNeeded (and autoload) directory
are sourced only when an undefined function or a command is
invoked. If you invoke the :Calendar command, then your
maps should start to work.

- Yegappan


(If you move it there, don't forget to do a
MkAsNeeded and, if you are not using the latest version of
AsNeeded, source plugin/ANtags.vim.)

BTW, I split plugin/calendar.vim into:

plugin/calendarPlugin.vim
autoload/calendar.vim

This give a nice small footprint for the plugin and thus
obviates the need for placing the original in AsNeeded.

--
Best regards,
Bill




Re: Calendar ?

2006-11-24 Thread striker
I use version 1.4a.  The Calendar.vim file is indeed in the plugin  
directory.  Here are a few usage lines from my Calendar.vim file:


 Usage:
 :Calendar
   show calendar at this year and this month
 :Calendar 8
   show calendar at this year and given month
 :Calendar 2001 8
   show calendar at given year and given month
 :CalendarH ...
   show horizontal calendar ...

 Leaderca
   show calendar in normal mode
 Leaderch
   show horizontal calendar ...
Kevin


On Nov 22, 2006, at 9:46 PM, Meino Christian Cramer wrote:


From: Tom Purl [EMAIL PROTECTED]
Subject: Re: Calendar ?
Date: Wed, 22 Nov 2006 12:15:04 -0600 (CST)

I found the plugin in $HOME/.vim/plugin/.

What version do you use? The header of my calendar.vim consists mainly
of a long history, instructions on how to set some calendar specific
variables in .vimrc and some other stuff for .vimrc.

no usage instructions, no keybindings.

Mine is the version of the 17.Jan 2006 and is named 1.4.

mcc



Check out the source, which should be in one of your plugin  
directories.  For
me, it's in $HOME/vimfiles/plugin/calendar.vim on my Win XP  
computer. The
header of the file has a ton of commments, including usage  
statements nad

Additional notes.

HTH!

Tom Purl


Hi,

 where can I find instructions on how to use Calendar.vim and its
 keybindings ? I visited vim.org's script pages about  
Calendar.vim but

 didn't found, what I was searching for. Google also gave me
 nothing...

 But may be all this is my fault ?!

 Regards,
 mcc








Re: Calendar ?

2006-11-24 Thread Brian McKee

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

{Top posted 'cause the whole thread was - lotsa snippage}

It's actually mapped to \cal and \caL later in the plugin
The comment is out of date (if you read the change log)
Brian


I'm using version 1.4a.
Staring on line 37 in my version, there are usage statements.  If you
would rather not upgrade, then here's what it says:
 Leaderca
   show calendar in normal mode
 Leaderch
   show horizontal calendar ...


I found the plugin in $HOME/.vim/plugin/.
no usage instructions, no keybindings.

Check out the source, which should be in one of your plugin  
directories.  For
me, it's in $HOME/vimfiles/plugin/calendar.vim on my Win XP  
computer. The
header of the file has a ton of commments, including usage  
statements nad

Additional notes.


 where can I find instructions on how to use Calendar.vim and its
 keybindings ?

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFZwvfGnOmb9xIQHQRAsiIAJsHgOTo5v3LwUhKfC1NHElTLpZ+yQCgtJqk
/Lpgzdgtlg8i5TMnwHOR8WQ=
=6qdq
-END PGP SIGNATURE-


Re: Calendar ?

2006-11-24 Thread Bill McCarthy
On Fri 24-Nov-06 9:12am -0600, Brian McKee wrote:

 I'm using version 1.4a.
 Staring on line 37 in my version, there are usage statements.  If you
 would rather not upgrade, then here's what it says:
  Leaderca
show calendar in normal mode
  Leaderch
show horizontal calendar ...

 It's actually mapped to \cal and \caL later in the plugin
 The comment is out of date (if you read the change log)

From calendar.vim (which is in my AsNeeded directory):

if !hasmapto(PlugCalendarV)
  nmap unique Leadercal PlugCalendarV
endif
if !hasmapto(PlugCalendarH)
  nmap unique LeadercaL PlugCalendarH
endif
nmap silent PlugCalendarV :cal Calendar(0)CR
nmap silent PlugCalendarH :cal Calendar(1)CR

Looking at my vimrc file, I have:

nmap silent leadercv :CalendarCR
nmap silent leaderch :CalendarHCR

Although this works fine, type :nmap \c shows maps for

\cv  \ch  \cal  \caL

where \cal behaves like \cv and \caL behaves like \ch.

I thought I could stop this duplication by changing my vimrc
maps to:

nmap unique Leadercv PlugCalendarV
nmap unique Leaderch PlugCalendarH

just like in calendar.vim.  While this eliminates the
duplicate mappings, neither \cv or \ch does anything :-(

Without modifying calendar.vim, does anyone know how to
eliminate the mappings of \cal and \caL from being made?
[Yes, I know I can unmap them.]

-- 
Best regards,
Bill



Calendar ?

2006-11-22 Thread Meino Christian Cramer
Hi,

 where can I find instructions on how to use Calendar.vim and its
 keybindings ? I visited vim.org's script pages about Calendar.vim but
 didn't found, what I was searching for. Google also gave me
 nothing...

 But may be all this is my fault ?!

 Regards,
 mcc



Re: Calendar ?

2006-11-22 Thread Tom Purl
Check out the source, which should be in one of your plugin directories.  For
me, it's in $HOME/vimfiles/plugin/calendar.vim on my Win XP computer. The
header of the file has a ton of commments, including usage statements nad
Additional notes.

HTH!

Tom Purl

 Hi,

  where can I find instructions on how to use Calendar.vim and its
  keybindings ? I visited vim.org's script pages about Calendar.vim but
  didn't found, what I was searching for. Google also gave me
  nothing...

  But may be all this is my fault ?!

  Regards,
  mcc





Re: Calendar ?

2006-11-22 Thread Meino Christian Cramer
From: Tom Purl [EMAIL PROTECTED]
Subject: Re: Calendar ?
Date: Wed, 22 Nov 2006 12:15:04 -0600 (CST)

I found the plugin in $HOME/.vim/plugin/.

What version do you use? The header of my calendar.vim consists mainly
of a long history, instructions on how to set some calendar specific
variables in .vimrc and some other stuff for .vimrc.

no usage instructions, no keybindings.

Mine is the version of the 17.Jan 2006 and is named 1.4.

mcc



 Check out the source, which should be in one of your plugin directories.  For
 me, it's in $HOME/vimfiles/plugin/calendar.vim on my Win XP computer. The
 header of the file has a ton of commments, including usage statements nad
 Additional notes.
 
 HTH!
 
 Tom Purl
 
  Hi,
 
   where can I find instructions on how to use Calendar.vim and its
   keybindings ? I visited vim.org's script pages about Calendar.vim but
   didn't found, what I was searching for. Google also gave me
   nothing...
 
   But may be all this is my fault ?!
 
   Regards,
   mcc