Marcin Szamotulski wrote: > On 09:32 Thu 04 Dec , Marcin Szamotulski wrote: > > On 14:31 Wed 03 Dec , Matteo Cavalleri wrote: > > > I'm using the code I posted a while ago in this thread, I'm copying it > > > here again :) (it was without the -buffer option, I'm adding it now) > > > > > > create and source this file > > > > > > ------------------------ > > > function! Test(f,l) > > > echom a:f." - ".a:l > > > endfunction > > > command! -buffer -range=% RangeTest call Test(<line1>, <line2>) > > > ------------------------ > > > > > > then select a couple of lines and do: > > > > > > :'<,'>RangeTest > > > > I cannot reproduce it with the patch I sent. > > > > Best regards, > > Marcin > > Dear Bram, > > The attached patch adds support for user commands. For example this > patch makes it possible to define the following commands: > com RangeLines :echo <line1>.' '.<line2> > which is the same as: > com -addr=lines RangeLines :echo <line1>.' '.<line2> > com -addr=arguments RangeArguments :echo <line1>.' '.<line2> > com -addr=loaded_buffers RangeLoadedBuffers :echo <line1>.' '.<line2> > com -addr=buffers RangeBuffers :echo <line1>.' '.<line2> > com -addr=windows RangeWindows :echo <line1>.' '.<line2> > com -addr=tabs RangeTabs :echo <line1>.' '.<line2> > > The patch also includes a test, and it includes all the fixes > I published before in one place.
Thanks, I'll look into it soon. -- ARTHUR: You are indeed brave Sir knight, but the fight is mine. BLACK KNIGHT: Had enough? ARTHUR: You stupid bastard. You havn't got any arms left. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.