diff options
author | Akshay <[email protected]> | 2020-02-09 04:54:03 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-02-09 04:54:03 +0000 |
commit | 359a92f770e621828e628f319290bb5736b1f67b (patch) | |
tree | c4c4e5168c22ac13cd62c2ee03ef1a4334aa10fc /docs/posts/get_better_at_yanking_and_putting_in_vim | |
parent | 75c5c6044170bd6cc23502a6f40f15378269b3d1 (diff) |
new styles, new post!
Diffstat (limited to 'docs/posts/get_better_at_yanking_and_putting_in_vim')
-rw-r--r-- | docs/posts/get_better_at_yanking_and_putting_in_vim/index.html | 19 |
1 files changed, 10 insertions, 9 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 76d59be..1c77c44 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 | |||
@@ -10,6 +10,7 @@ | |||
10 | <meta property="og:type" content="website"> | 10 | <meta property="og:type" content="website"> |
11 | <meta property="og:description" content="a static site {for, by, about} me "> | 11 | <meta property="og:description" content="a static site {for, by, about} me "> |
12 | <meta property="og:url" content="https://peppe.rs"> | 12 | <meta property="og:url" content="https://peppe.rs"> |
13 | <link rel="icon" type="image/x-icon" href="/favicon.png"> | ||
13 | <title>Get Better At Yanking And Putting In Vim - peppe.rs</title> | 14 | <title>Get Better At Yanking And Putting In Vim - peppe.rs</title> |
14 | <body> | 15 | <body> |
15 | <div class="posts"> | 16 | <div class="posts"> |
@@ -39,23 +40,23 @@ | |||
39 | <ol start="1"> | 40 | <ol start="1"> |
40 | <li><p>reselecting previously selected text (i use this to fix botched selections):</p> | 41 | <li><p>reselecting previously selected text (i use this to fix botched selections):</p> |
41 | 42 | ||
42 | <pre><code>gv " :h gv for more | 43 | <pre><code>gv " :h gv for more |
43 | " 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 |
44 | " use a motion to fix the selection | 45 | " use a motion to fix the selection |
45 | </code></pre></li> | 46 | </code></pre></li> |
46 | <li><p>reselecting previously yanked text:</p> | 47 | <li><p>reselecting previously yanked text:</p> |
47 | 48 | ||
48 | <pre><code>`[v`] | 49 | <pre><code>`[v`] |
49 | `[ " marks the beginning of the previously yanked text :h `[ | 50 | `[ " marks the beginning of the previously yanked text :h `[ |
50 | `] " marks the end :h `] | 51 | `] " marks the end :h `] |
51 | v " visual select everything in between | 52 | v " visual select everything in between |
52 | 53 | ||
53 | nnoremap gb `[v`] " "a quick map to perform the above | 54 | nnoremap gb `[v`] " "a quick map to perform the above |
54 | </code></pre></li> | 55 | </code></pre></li> |
55 | <li><p>pasting and indenting text (in one go):</p> | 56 | <li><p>pasting and indenting text (in one go):</p> |
56 | 57 | ||
57 | <pre><code>]p " put (p) and adjust indent to current line | 58 | <pre><code>]p " put (p) and adjust indent to current line |
58 | ]P " put the text before the cursor (P) and adjust indent to current line | 59 | ]P " put the text before the cursor (P) and adjust indent to current line |
59 | </code></pre></li> | 60 | </code></pre></li> |
60 | </ol> | 61 | </ol> |
61 | 62 | ||