Thanks Christian,
that did it!
--
--
You received this message from the "vim_use" 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 G
On Tue, April 16, 2013 09:07, Christian Brabandt wrote:
> I think, this was sometimes also discussed on vim_dev but changing
> this behaviour would be a backwards incompatible change.
it was discussed here:
https://groups.google.com/d/msg/vim_dev/qs3RmTMMh44/40XgaSz9TbEJ
regards,
Christian
--
-
On Tue, April 16, 2013 08:42, Axel Bender wrote:
> Anyway. I attached a VimL file which shows the problem (at least here:
> version 7.3.903, Windows 7, 64 bit). Please try to execute :Hi w/o a
> visual block, the cursor being in line 2.
>
That is because of the way, function-range is implemented.
Hm, somehow my last (yesterday evening) post got removed...
Anyway. I attached a VimL file which shows the problem (at least here: version
7.3.903, Windows 7, 64 bit). Please try to execute :Hi w/o a visual block, the
cursor being in line 2.
--
--
You received this message from the "vim_use"
On Monday, April 15, 2013 12:54:14 AM UTC+12, Axel Bender wrote:
> :command -range=% aaa call ,func().
That doesn't look right; don't you mean
:command! -range=% Aaa ,call Func()
If you "start from visual block", when you type the : vim puts
:'<,'>
on the "command-line", and then you type
On Sunday, April 14, 2013 7:54:14 AM UTC-5, Axel Bender wrote:
> I'm searching a way to determine the last cursor position before entering the
> command line to execute a command defined with
>
> :command -range=% aaa call ,func().
>
> If I start from a visual block, I'm able to retrieve that
I'm searching a way to determine the last cursor position before entering the
command line to execute a command defined with
:command -range=% aaa call ,func().
If I start from a visual block, I'm able to retrieve that position with
line(".") or a:firstline in func().
However, if I don't use