The 2007 Vim calendar
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 ?
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 ?
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. -- Best regards, Bill
Re: Calendar ?
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 cva CVSAdd > nmap cvn CVSAnnotate > nmap cvc CVSCommit > nmap cvd CVSDiff > nmap cve CVSEdit > nmap cvi CVSEditors > nmap cvg CVSGotoOriginal > nmap cvG CVSGotoOriginal! > nmap cvl CVSLog > nmap cvr CVSReview > nmap cvs CVSStatus > nmap cvt CVSUnedit > nmap cvu CVSUpdate > nmap cvv CVSVimDiff > nmap cwv CVSWatchers > nmap cwa CVSWatchAdd > nmap cwn CVSWatchOn > nmap cwf CVSWatchOff > nmap cwr CVSWatchRemove > > " calendar {{{2 > nmap cal :unmap calunmap cahnmap > cal CalendarVnmap cah > CalendarHcall Calendar(0) > nmap cah :unmap calunmap cahnmap > cal CalendarVnmap cah > CalendarHcall Calendar(1) > > Both of these plugins reside in my AsNeeded directory. Thanks for those interesting ideas! -- Best regards, Bill
Re: Calendar ?
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 ?
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 ch :CalendarH 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 ?
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 ?
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 ?
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 ?
Charles E Campbell Jr wrote: Bill McCarthy wrote: (snip -- discussion concerning having calendar.vim 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. 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. BTW, here's what I use in my <.vimrc> to allow cvscommand and Calendar to co-exist: " cvscommand {{{2 nmap cva CVSAdd nmap cvn CVSAnnotate nmap cvc CVSCommit nmap cvd CVSDiff nmap cve CVSEdit nmap cvi CVSEditors nmap cvg CVSGotoOriginal nmap cvG CVSGotoOriginal! nmap cvl CVSLog nmap cvr CVSReview nmap cvs CVSStatus nmap cvt CVSUnedit nmap cvu CVSUpdate nmap cvv CVSVimDiff nmap cwv CVSWatchers nmap cwa CVSWatchAdd nmap cwn CVSWatchOn nmap cwf CVSWatchOff nmap cwr CVSWatchRemove " calendar {{{2 nmap cal :unmap calunmap cahnmap cal CalendarVnmap cah CalendarHcall Calendar(0) nmap cah :unmap calunmap cahnmap cal CalendarVnmap cah CalendarHcall Calendar(1) Both of these plugins reside in my AsNeeded directory. Regards, Chip Campbell
Re: Calendar ?
Bill McCarthy wrote: (snip -- discussion concerning having calendar.vim 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. 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. Regards, Chip Campbell
Re: Calendar ?
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): >> - >> >> >> >> > 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 ch CalendarH nmap cv CalendarV Then AsNeeded is not transparent. One needs to first execute a command - not desirable. If instead, I define: nmap ch :CalendarH nmap cv :Calendar 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 ?
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): - > 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 ?
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): - > 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 ?
Hi Bill, On 11/24/06, Bill McCarthy <[EMAIL PROTECTED]> wrote: 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: >> " ca >> " show calendar in normal mode >> " ch >> " 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("CalendarV") nmap cal CalendarV endif if !hasmapto("CalendarH") nmap caL CalendarH endif nmap CalendarV :cal Calendar(0) nmap CalendarH :cal Calendar(1) Looking at my vimrc file, I have: nmap cv :Calendar nmap ch :CalendarH 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 cv CalendarV nmap ch CalendarH just like in calendar.vim. While this eliminates the duplicate mappings, neither \cv or \ch does anything :-( 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. - Yegappan 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.]
Re: Calendar ?
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: >> " ca >> " show calendar in normal mode >> " ch >> " 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("CalendarV") nmap cal CalendarV endif if !hasmapto("CalendarH") nmap caL CalendarH endif nmap CalendarV :cal Calendar(0) nmap CalendarH :cal Calendar(1) Looking at my vimrc file, I have: nmap cv :Calendar nmap ch :CalendarH 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 cv CalendarV nmap ch CalendarH 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
Re: Calendar ?
-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: " ca " show calendar in normal mode " ch " 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 ?
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 ... " " ca " show calendar in normal mode " ch " 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 ?
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: " 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 ... " " ca " show calendar in normal mode " ch " show horizontal calendar ... HTH! Tom Purl On Thu, Nov 23, 2006 at 03:46:51AM +0100, 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 ?
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 ?
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 > >
Calendar ?
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