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
-~----------~----~----~----~------~----~------~--~---