snipt

Ctrl+h for KB shortcuts

Text only

Select a Block of Text in Visual Mode

1
2
3
4
5
6
7
# To select a block of text from line xx to line yy
# On line xx
ma

# On line yy
Shift + v
`a
https://snipt.net/embed/692622a64b09582415ea5853cab66a51/
/raw/692622a64b09582415ea5853cab66a51/
692622a64b09582415ea5853cab66a51
text
Text only
7
2019-07-17T01:18:28
True
False
False
May 07, 2013 at 10:48 PM
/api/public/snipt/60891/
select-a-block-of-text-in-visual-mode
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a># To select a block of text from line xx to line yy </span><span id="L-2"><a name="L-2"></a># On line xx </span><span id="L-3"><a name="L-3"></a>ma </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a># On line yy </span><span id="L-6"><a name="L-6"></a>Shift + v </span><span id="L-7"><a name="L-7"></a>`a </span></pre></div> </td></tr></table>
vim