> but can you please explain what exactly does :'<,'> means?
That's a range as defined by two marks, the
'<
mark (meaning the starting line of a visual selection)
,
through the
'>
mark (meaning the ending line of a visual selection).
Vim supports an incredibly powerful declaration of ranges which you
can read about at
:help :range
which allows for absolute and relative addressing, including relative
to previous addresses such as
:1/CHAPTER/+2,$?APPENDIX?-3
which starts on line 1, searches forward for "CHAPTER", then moves
forward 2 lines from there to start the range, and then starts at the
bottom of the file ("$"), searches backwards for "APPENDIX", and then
moves 3 lines back from that match.
-tim
--
--
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 Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Wednesday, May 8, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment