Marks in Ranges


Since marks reference a location in the buffer, they can be used in range expressions too. For example, in the example mark x is defined in line 2. The range of lines from mark x to the current line is therefore given by:

:'x,.
Confirm Mark x
"When·someone·is·searching,"·said·Siddhartha,·"then·it·might·easily
happen·that·the·only·thing·his·eyes·still·see·is·that·what·he·searches
for,·that·he·is·unable·to·find·anything,·to·let·anything·enter·his
mind,·because·he·always·thinks·of·nothing·but·the·object·of·his·search,
because·he·has·a·goal,·because·he·is·obsessed·by·the·goal.·Searching
means:·having·a·goal.·But·finding·means:·being·free,·being·open,·having
no·goal.·You,·oh·venerable·one,·are·perhaps·indeed·a·searcher,·because,
striving·for·your·goal,·there·are·many·things·you·don't·see,·which·are
directly·in·front·of·your·eyes."
NORMAL40%4:1
 
:marks xmark line  col file/text x      2    0 happen that the only thing his eyes still see is that what he se
Prior to Execution
"When·someone·is·searching,"·said·Siddhartha,·"then·it·might·easily
happen·that·the·only·thing·his·eyes·still·see·is·that·what·he·searches
for,·that·he·is·unable·to·find·anything,·to·let·anything·enter·his
mind,·because·he·always·thinks·of·nothing·but·the·object·of·his·search,
because·he·has·a·goal,·because·he·is·obsessed·by·the·goal.·Searching
means:·having·a·goal.·But·finding·means:·being·free,·being·open,·having
no·goal.·You,·oh·venerable·one,·are·perhaps·indeed·a·searcher,·because,
striving·for·your·goal,·there·are·many·things·you·don't·see,·which·are
directly·in·front·of·your·eyes."
COMMAND40%4:1
:'x,.yank a
After Execution
"When·someone·is·searching,"·said·Siddhartha,·"then·it·might·easily
happen·that·the·only·thing·his·eyes·still·see·is·that·what·he·searches
for,·that·he·is·unable·to·find·anything,·to·let·anything·enter·his
mind,·because·he·always·thinks·of·nothing·but·the·object·of·his·search,
because·he·has·a·goal,·because·he·is·obsessed·by·the·goal.·Searching
means:·having·a·goal.·But·finding·means:·being·free,·being·open,·having
no·goal.·You,·oh·venerable·one,·are·perhaps·indeed·a·searcher,·because,
striving·for·your·goal,·there·are·many·things·you·don't·see,·which·are
directly·in·front·of·your·eyes."
NORMAL40%4:1
3 lines yanked into "a
Confirm Register Content
"When·someone·is·searching,"·said·Siddhartha,·"then·it·might·easily
happen·that·the·only·thing·his·eyes·still·see·is·that·what·he·searches
for,·that·he·is·unable·to·find·anything,·to·let·anything·enter·his
mind,·because·he·always·thinks·of·nothing·but·the·object·of·his·search,
because·he·has·a·goal,·because·he·is·obsessed·by·the·goal.·Searching
means:·having·a·goal.·But·finding·means:·being·free,·being·open,·having
no·goal.·You,·oh·venerable·one,·are·perhaps·indeed·a·searcher,·because,
striving·for·your·goal,·there·are·many·things·you·don't·see,·which·are
directly·in·front·of·your·eyes."
NORMAL40%4:1
 
:reg aType Name Content  l  "a   happen that the only thing his eyes still see is that what he searche

or to select lines from the current line to the end of the current paragraph:

:.,'}
Prior to Execution
"When·someone·is·searching,"·said·Siddhartha,·"then·it·might·easily
happen·that·the·only·thing·his·eyes·still·see·is·that·what·he·searches
for,·that·he·is·unable·to·find·anything,·to·let·anything·enter·his
mind,·because·he·always·thinks·of·nothing·but·the·object·of·his·search,
because·he·has·a·goal,·because·he·is·obsessed·by·the·goal.·Searching
means:·having·a·goal.·But·finding·means:·being·free,·being·open,·having
no·goal.·You,·oh·venerable·one,·are·perhaps·indeed·a·searcher,·because,
striving·for·your·goal,·there·are·many·things·you·don't·see,·which·are
directly·in·front·of·your·eyes."
COMMAND40%4:1
:.,'}yank b
After Execution
"When·someone·is·searching,"·said·Siddhartha,·"then·it·might·easily
happen·that·the·only·thing·his·eyes·still·see·is·that·what·he·searches
for,·that·he·is·unable·to·find·anything,·to·let·anything·enter·his
mind,·because·he·always·thinks·of·nothing·but·the·object·of·his·search,
because·he·has·a·goal,·because·he·is·obsessed·by·the·goal.·Searching
means:·having·a·goal.·But·finding·means:·being·free,·being·open,·having
no·goal.·You,·oh·venerable·one,·are·perhaps·indeed·a·searcher,·because,
striving·for·your·goal,·there·are·many·things·you·don't·see,·which·are
directly·in·front·of·your·eyes."
NORMAL40%4:1
6 lines yanked into "b
Confirm Register Content
"When·someone·is·searching,"·said·Siddhartha,·"then·it·might·easily
happen·that·the·only·thing·his·eyes·still·see·is·that·what·he·searches
for,·that·he·is·unable·to·find·anything,·to·let·anything·enter·his
mind,·because·he·always·thinks·of·nothing·but·the·object·of·his·search,
because·he·has·a·goal,·because·he·is·obsessed·by·the·goal.·Searching
means:·having·a·goal.·But·finding·means:·being·free,·being·open,·having
no·goal.·You,·oh·venerable·one,·are·perhaps·indeed·a·searcher,·because,
striving·for·your·goal,·there·are·many·things·you·don't·see,·which·are
directly·in·front·of·your·eyes."
NORMAL40%4:1
 
:reg bType Name Content  l  "b   mind, because he always thinks of nothing but the object of his searc

marks can also be combined with offsets. To select lines from the current paragraph except for the first and last:

:'{+1,'}-1
Prior to Execution
"When·someone·is·searching,"·said·Siddhartha,·"then·it·might·easily
happen·that·the·only·thing·his·eyes·still·see·is·that·what·he·searches
for,·that·he·is·unable·to·find·anything,·to·let·anything·enter·his
mind,·because·he·always·thinks·of·nothing·but·the·object·of·his·search,
because·he·has·a·goal,·because·he·is·obsessed·by·the·goal.·Searching
means:·having·a·goal.·But·finding·means:·being·free,·being·open,·having
no·goal.·You,·oh·venerable·one,·are·perhaps·indeed·a·searcher,·because,
striving·for·your·goal,·there·are·many·things·you·don't·see,·which·are
directly·in·front·of·your·eyes."
COMMAND40%4:1
:'{+1,'}-1yank c
After Execution
"When·someone·is·searching,"·said·Siddhartha,·"then·it·might·easily
happen·that·the·only·thing·his·eyes·still·see·is·that·what·he·searches
for,·that·he·is·unable·to·find·anything,·to·let·anything·enter·his
mind,·because·he·always·thinks·of·nothing·but·the·object·of·his·search,
because·he·has·a·goal,·because·he·is·obsessed·by·the·goal.·Searching
means:·having·a·goal.·But·finding·means:·being·free,·being·open,·having
no·goal.·You,·oh·venerable·one,·are·perhaps·indeed·a·searcher,·because,
striving·for·your·goal,·there·are·many·things·you·don't·see,·which·are
directly·in·front·of·your·eyes."
NORMAL40%4:1
7 lines yanked into "c
Confirm Register Content
"When·someone·is·searching,"·said·Siddhartha,·"then·it·might·easily
happen·that·the·only·thing·his·eyes·still·see·is·that·what·he·searches
for,·that·he·is·unable·to·find·anything,·to·let·anything·enter·his
mind,·because·he·always·thinks·of·nothing·but·the·object·of·his·search,
because·he·has·a·goal,·because·he·is·obsessed·by·the·goal.·Searching
means:·having·a·goal.·But·finding·means:·being·free,·being·open,·having
no·goal.·You,·oh·venerable·one,·are·perhaps·indeed·a·searcher,·because,
striving·for·your·goal,·there·are·many·things·you·don't·see,·which·are
directly·in·front·of·your·eyes."
NORMAL40%4:1
 
:reg cType Name Content  l  "c   happen that the only thing his eyes still see is that what he searche