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 <Leader>cva <Plug>CVSAdd
nmap <Leader>cvn <Plug>CVSAnnotate
nmap <Leader>cvc <Plug>CVSCommit
nmap <Leader>cvd <Plug>CVSDiff
nmap <Leader>cve <Plug>CVSEdit
nmap <Leader>cvi <Plug>CVSEditors
nmap <Leader>cvg <Plug>CVSGotoOriginal
nmap <Leader>cvG <Plug>CVSGotoOriginal!
nmap <Leader>cvl <Plug>CVSLog
nmap <Leader>cvr <Plug>CVSReview
nmap <Leader>cvs <Plug>CVSStatus
nmap <Leader>cvt <Plug>CVSUnedit
nmap <Leader>cvu <Plug>CVSUpdate
nmap <Leader>cvv <Plug>CVSVimDiff
nmap <Leader>cwv <Plug>CVSWatchers
nmap <Leader>cwa <Plug>CVSWatchAdd
nmap <Leader>cwn <Plug>CVSWatchOn
nmap <Leader>cwf <Plug>CVSWatchOff
nmap <Leader>cwr <Plug>CVSWatchRemove
" calendar {{{2
nmap <Leader>cal :unmap <Leader>cal<bar>unmap <Leader>cah<bar>nmap
<Leader>cal <Plug>CalendarV<bar>nmap <Leader>cah
<Plug>CalendarH<bar>call Calendar(0)<cr>
nmap <Leader>cah :unmap <Leader>cal<bar>unmap <Leader>cah<bar>nmap
<Leader>cal <Plug>CalendarV<bar>nmap <Leader>cah
<Plug>CalendarH<bar>call Calendar(1)<cr>
Both of these plugins reside in my AsNeeded directory.
Regards,
Chip Campbell