diff options
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.html | 49 |
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 " :h gv for more | |
43 | <pre><code>gv " :h gv for more | 64 | " you can use `o` in visual mode to go to the `Other` end of the selection |
44 | " you can use `o` in visual mode to go to the `Other` end of the selection | 65 | " use a motion to fix the selection</code></pre></li> |
45 | " 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 | `[ " marks the beginning of the previously yanked text :h `[ | 68 | `[ " marks the beginning of the previously yanked text :h `[ |
51 | `] " marks the end :h `] | 69 | `] " marks the end :h `] |
52 | v " visual select everything in between | 70 | v " visual select everything in between |
53 | 71 | ||
54 | nnoremap gb `[v`] " "a quick map to perform the above | 72 | nnoremap gb `[v`] " "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 " put (p) and adjust indent to current line | |
58 | <pre><code>]p " put (p) and adjust indent to current line | 75 | ]P " put the text before the cursor (P) and adjust indent to current line</code></pre></li> |
59 | ]P " 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 | ||