Thank both of you, the problem is gone!

Lenin

2009/2/24 Andreas Bernauer <[email protected]>

>
> Lenin Lee wrote:
> > I also need to get the line number of the first line belongs to the
> > selection area and the last one, is there a way to do so ?
>
> line() accepts a mark, and the marks '< and '> point to the beginning
> and end of a selection:
>
> let start_sel = line("'<")
> let end_sel = line("'>")
>
> Note that user-defined commands can take the current range as a
> parameter, see :help command-range.
>
> --
> Andreas.
>
> >
>


-- 
初从文,三年不第。遂习武,校场发一矢,中鼓吏,逐之出。后学医,有所成,自撰一良方,服之,卒。

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to