Re: surround.vim in AsNeeded

2007-02-21 Thread Bill McCarthy
On Wed 21-Feb-07 1:56pm -0600, Charles E Campbell Jr wrote: > Bill McCarthy wrote: >>BTW, as an enhancement request, could AN be enhanced to look >>for map when it fails to find map? That is, >>if I want to load the align maps: >> >>AN \abox >> >>doesn't work. I would need to type: >> >>

Re: surround.vim in AsNeeded

2007-02-21 Thread Charles E Campbell Jr
Bill McCarthy wrote: BTW, as an enhancement request, could AN be enhanced to look for map when it fails to find map? That is, if I want to load the align maps: AN \abox doesn't work. I would need to type: AN abox If you happen to have (as an example) let mapleader= ";" in your

Re: surround.vim in AsNeeded

2007-02-19 Thread Bill McCarthy
On Mon 19-Feb-07 11:13am -0600, [EMAIL PROTECTED] wrote: > I think I should point out that AsNeeded provides > transparent support for plugin loading for commands and > functions -- ie. issue a command, and if the associated > plugin hasn't been loaded yet, it will be, and the

Re: surround.vim in AsNeeded

2007-02-19 Thread drchip
Quoting Bill McCarthy <[EMAIL PROTECTED]>: > Hello Vim List, > > I just tried out surround.vim, recently updated on Vim > Online. Nice plugin! > > It works fine when placed in my plugin directory but doesn't > work if moved to my AsNeeded directory and :MkAsNee

surround.vim in AsNeeded

2007-02-16 Thread Bill McCarthy
Hello Vim List, I just tried out surround.vim, recently updated on Vim Online. Nice plugin! It works fine when placed in my plugin directory but doesn't work if moved to my AsNeeded directory and :MkAsNeeded is run. Has anyone out there been able to get this to work? -- Best regards, Bill

Re: AsNeeded?

2006-08-04 Thread Bill McCarthy
On Mon 31-Jul-06 10:09am -0600, Charles E Campbell Jr wrote: > Anyway, I've modified AsNeeded to defer to taglist for > Tlist_ and Taglist_ functions in v14b. Thanks for the update! I've moved taglist to my AsNeeded directory as you suggested. taglist works well now except wh

Re: AsNeeded?

2006-07-31 Thread Charles E Campbell Jr
Bill McCarthy wrote: Chip, I tried again with just AsNeeded and taglist in my vimfiles\plugin and vimfiles\doc - otherwise an empty vimfiles tree - and fairly minimalist _vimrc and _gvimrc (see below my sig). I opened an edit session on a small project with 25 .c or .h files: gvim *.c

Re: AsNeeded?

2006-07-31 Thread Bill McCarthy
ot; \ && expand("") !~# "TagList" \| call AsNeeded(1,expand("")) | \ endif -- Best regards, Bill

Re: AsNeeded?

2006-07-30 Thread A.J.Mechelynck
Bill McCarthy wrote: [...] I made an interesting discovery. If I force AsNeeded to load after taglist (its first time), although I get the same error message running :TlistSessionLoad, the session was indeed loaded. What is happening is the autocmd for taglist was triggered and did its thing

Re: AsNeeded?

2006-07-30 Thread Bill McCarthy
t yet) moving the AsNeeded plugin to the plugin subdir of a > directory listed later in 'runtimepath' than where taglist sits, e.g. > taglist in $HOME/vimfiles/plugin and AsNeeded in $VIM/vimfiles/plugin > (typically C:\Program Files\vim\vimfiles\plugin ). I moved AsNeeded from v

Re: AsNeeded?

2006-07-30 Thread A.J.Mechelynck
Bill McCarthy wrote: On Sun 30-Jul-06 2:05pm -0600, you wrote: Bill McCarthy wrote: On Sun 30-Jul-06 4:56am -0600, Christian Ebert wrote: * A.J.Mechelynck on Sunday, July 30, 2006 at 10:59:55 +0200: Looks like AsNeeded didn't find Tlist_Session_Load in taglist because taglist'

Re: AsNeeded?

2006-07-30 Thread Bill McCarthy
On Sun 30-Jul-06 2:05pm -0600, you wrote: > Bill McCarthy wrote: >> On Sun 30-Jul-06 4:56am -0600, Christian Ebert wrote: >> >>> * A.J.Mechelynck on Sunday, July 30, 2006 at 10:59:55 +0200: >>>> Looks like AsNeeded didn't find Tlist_Session_Load in tagli

Re: AsNeeded?

2006-07-30 Thread A.J.Mechelynck
Bill McCarthy wrote: On Sun 30-Jul-06 4:56am -0600, Christian Ebert wrote: * A.J.Mechelynck on Sunday, July 30, 2006 at 10:59:55 +0200: Looks like AsNeeded didn't find Tlist_Session_Load in taglist because taglist's "script number" had changed from 23 to something else,

Re: AsNeeded?

2006-07-30 Thread Bill McCarthy
On Sun 30-Jul-06 4:56am -0600, Christian Ebert wrote: > * A.J.Mechelynck on Sunday, July 30, 2006 at 10:59:55 +0200: >> Looks like AsNeeded didn't find Tlist_Session_Load in taglist >> because taglist's "script number" had changed from 23 to something else, &g

Re: AsNeeded?

2006-07-30 Thread Christian Ebert
* A.J.Mechelynck on Sunday, July 30, 2006 at 10:59:55 +0200: > Looks like AsNeeded didn't find Tlist_Session_Load in taglist > because taglist's "script number" had changed from 23 to something else, > or because taglist wasn't reloaded (yet?). Try moving tagl

Re: AsNeeded?

2006-07-30 Thread A.J.Mechelynck
Bill McCarthy wrote: Chip, On Sat 29-Jul-06 12:38pm -0600, you wrote: Quoting Bill McCarthy <[EMAIL PROTECTED]>: However, since I cannot seem to get AsNeeded and taglist to play nice together, I cannot use your plugin. Hmm, well that's curious; I seem to have no difficulty w

Re: AsNeeded?

2006-07-29 Thread Bill McCarthy
Chip, On Sat 29-Jul-06 12:38pm -0600, you wrote: > Quoting Bill McCarthy <[EMAIL PROTECTED]>: >> However, since I cannot seem to get AsNeeded and taglist to >> play nice together, I cannot use your plugin. > Hmm, well that's curious; I seem to have no difficulty

Re: AsNeeded?

2006-07-29 Thread drchip
Quoting Bill McCarthy <[EMAIL PROTECTED]>: > Chip, > > On Thu 27-Jul-06 8:38am -0600, you wrote: > > > AsNeeded uses the FuncUndefined autocommand to > > transparently load functions. > > Commands and maps, unfortunately, are not blessed with such an auto

Re: AsNeeded?

2006-07-28 Thread Bill McCarthy
Chip, On Thu 27-Jul-06 8:38am -0600, you wrote: > AsNeeded uses the FuncUndefined autocommand to > transparently load functions. > Commands and maps, unfortunately, are not blessed with such an autocommand. > Hence AsNeeded provides: > > :AN map-or-command > :ANX map-o

Re: AsNeeded?

2006-07-27 Thread Charles E Campbell Jr
Bill McCarthy wrote: Hello Vim List, I just tried out Chip's AsNeeded script. After installing the VBA, I copied everything from \vim\vimfiles\plugin\ (except scripts, like netrwPlugin, which also exist in $vimruntime\plugin) to \vim\vimfiles\AsNeeded\. I then tried it out on one of the

Re: AsNeeded?

2006-07-27 Thread Marc Weber
hich can be used to autoload functions. But I'm not aware of something corresponding to commands. Thus AsNeeded has no option to get notified that you want to execute this particular command it should load. Thus it defines it's own commands where you have to add your command as argument. (:AN

AsNeeded?

2006-07-26 Thread Bill McCarthy
Hello Vim List, I just tried out Chip's AsNeeded script. After installing the VBA, I copied everything from \vim\vimfiles\plugin\ (except scripts, like netrwPlugin, which also exist in $vimruntime\plugin) to \vim\vimfiles\AsNeeded\. I then tried it out on one of the same author'

Re: Patch for AsNeeded to define proxy commands

2006-05-11 Thread Thomas
Perhaps you should submit the patch to the author of this script. I'm aware this isn't part of the standard distribution and yes, I did a while ago. Anyway, in the meantime I realized that creating these proxy commands should probably be done with an autocommand for AsNeeded/ANt

RE: Patch for AsNeeded to define proxy commands

2006-05-11 Thread Zdenek Sekera
---Zdenek > -Original Message- > From: Benji Fisher [mailto:[EMAIL PROTECTED] > Sent: 11 May 2006 14:20 > To: vim@vim.org > Subject: Re: Patch for AsNeeded to define proxy commands > > On Wed, May 10, 2006 at 09:00:32PM +0200, Thomas wrote: > > Hi, >

Re: Patch for AsNeeded to define proxy commands

2006-05-11 Thread Benji Fisher
On Wed, May 10, 2006 at 09:00:32PM +0200, Thomas wrote: > Hi, > > Here is a small patch for AsNeeded that eliminates the need to call > AN(X) for commands. It creates a file called ~/.vim/AsNeeded/ANautoload > that contains lines like: > > command! -range -nargs=* Comma

Patch for AsNeeded to define proxy commands

2006-05-10 Thread Thomas
Hi, Here is a small patch for AsNeeded that eliminates the need to call AN(X) for commands. It creates a file called ~/.vim/AsNeeded/ANautoload that contains lines like: command! -range -nargs=* Command delcommand Command | ANX Command Regards, Thomas. --- AsNeeded.vim2006-05-10 20