aboutsummaryrefslogtreecommitdiff
path: root/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-04-16 09:10:50 +0100
committerAkshay <[email protected]>2020-04-16 09:10:50 +0100
commit2a778912251874f9b808f82e61244efcd12210aa (patch)
tree72cd692749c36f068fe22a32ede51a88a65bc759 /docs/posts/get_better_at_yanking_and_putting_in_vim/index.html
parentd71a288d944959057064d64ce03cad759a42ba06 (diff)
rerender with pandoc
Diffstat (limited to 'docs/posts/get_better_at_yanking_and_putting_in_vim/index.html')
-rw-r--r--docs/posts/get_better_at_yanking_and_putting_in_vim/index.html49
1 files changed, 33 insertions, 16 deletions
diff --git a/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html b/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html
index d4e8fb4..6536f6d 100644
--- a/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html
+++ b/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html
@@ -37,28 +37,45 @@
37 Get Better At Yanking And Putting In Vim 37 Get Better At Yanking And Putting In Vim
38 </h1> 38 </h1>
39 <div class="post-text"> 39 <div class="post-text">
40 <ol start="1"> 40 <!DOCTYPE html>
41<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
42<head>
43 <meta charset="utf-8" />
44 <meta name="generator" content="pandoc" />
45 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
46 <title>get_better_at_yanking_and_putting_in_vim</title>
47 <style>
48 code{white-space: pre-wrap;}
49 span.smallcaps{font-variant: small-caps;}
50 span.underline{text-decoration: underline;}
51 div.column{display: inline-block; vertical-align: top; width: 50%;}
52 div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
53 ul.task-list{list-style: none;}
54 </style>
55 <!--[if lt IE 9]>
56 <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
57 <![endif]-->
58</head>
59<body>
60<p>a couple of nifty tricks to help you copy-paste better:</p>
61<ol type="1">
41<li><p>reselecting previously selected text (i use this to fix botched selections):</p> 62<li><p>reselecting previously selected text (i use this to fix botched selections):</p>
42 63<pre><code>gv &quot; :h gv for more
43<pre><code>gv &#34; :h gv for more 64 &quot; you can use `o` in visual mode to go to the `Other` end of the selection
44 &#34; you can use `o` in visual mode to go to the `Other` end of the selection 65 &quot; use a motion to fix the selection</code></pre></li>
45 &#34; use a motion to fix the selection
46</code></pre></li>
47<li><p>reselecting previously yanked text:</p> 66<li><p>reselecting previously yanked text:</p>
48
49<pre><code>`[v`] 67<pre><code>`[v`]
50`[ &#34; marks the beginning of the previously yanked text :h `[ 68`[ &quot; marks the beginning of the previously yanked text :h `[
51`] &#34; marks the end :h `] 69`] &quot; marks the end :h `]
52 v &#34; visual select everything in between 70 v &quot; visual select everything in between
53 71
54nnoremap gb `[v`] &#34; &#34;a quick map to perform the above 72nnoremap gb `[v`] &quot; &quot;a quick map to perform the above</code></pre></li>
55</code></pre></li>
56<li><p>pasting and indenting text (in one go):</p> 73<li><p>pasting and indenting text (in one go):</p>
57 74<pre><code>]p &quot; put (p) and adjust indent to current line
58<pre><code>]p &#34; put (p) and adjust indent to current line 75]P &quot; put the text before the cursor (P) and adjust indent to current line</code></pre></li>
59]P &#34; put the text before the cursor (P) and adjust indent to current line
60</code></pre></li>
61</ol> 76</ol>
77</body>
78</html>
62 79
63 </div> 80 </div>
64 81