blob: ae151e7f8e81374193de931d17b3d3bd31181a18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="./style.css">
<meta charset="UTF-8">
<title>n</title>
<script>
function showPost(id) {
let post = document.getElementById(id);
if (post.style.display == "none") {
post.style.display = "block";
} else {
post.style.display = "none";
}
}
</script> </head>
<body>
<div class="black-circle">
<h1 class="heading">n</h1>
</div>
<div class="posts">
<div class="post">
<div class="date">30/07 2019</div>
<a href="#another_post_to_test_date.md" class="post-link" onClick="showPost('another_post_to_test_date.md')">Another Post To Test Date</a>
<div id="another_post_to_test_date.md" class="post-text" style="display: none">
<p>this posts tests chronological arrangement of items</p>
<a href="#another_post_to_test_date.md" class="post-end-link" onClick="showPost('another_post_to_test_date.md')">↑ Collapse</a>
<div class=separator></div>
</div>
</div>
<div class="post">
<div class="date">30/07 2019</div>
<a href="#z_is_the_latest_post.md" class="post-link" onClick="showPost('z_is_the_latest_post.md')">Z Is The Latest Post</a>
<div id="z_is_the_latest_post.md" class="post-text" style="display: none">
<p>this is the latest post,
hope it shows up at the top</p>
<a href="#z_is_the_latest_post.md" class="post-end-link" onClick="showPost('z_is_the_latest_post.md')">↑ Collapse</a>
<div class=separator></div>
</div>
</div>
<div class="post">
<div class="date">30/07 2019</div>
<a href="#get_better_at_yanking_and_putting_in_vim.md" class="post-link" onClick="showPost('get_better_at_yanking_and_putting_in_vim.md')">Get Better At Yanking And Putting In Vim</a>
<div id="get_better_at_yanking_and_putting_in_vim.md" class="post-text" style="display: none">
<ol>
<li><p>reselecting previously selected text (i use this to fix botched selections):</p>
<pre><code>gv " :h gv for more
" you can use `o` in visual mode to go to the `Other` end of the selection
" use a motion to fix the selection
</code></pre></li>
<li><p>reselecting previously yanked text:</p>
<pre><code>`[v`]
`[ " marks the beginning of the previously yanked text :h `[
`] " marks the end :h `]
v " visual select everything in between
nnoremap gb `[v`] " "a quick map to perform the above
</code></pre></li>
<li><p>pasting and indenting text (in one go):</p>
<pre><code>]p " put (p) and adjust indent to current line
]P " put the text before the cursor (P) and adjust indent to current line
</code></pre></li>
</ol>
<a href="#get_better_at_yanking_and_putting_in_vim.md" class="post-end-link" onClick="showPost('get_better_at_yanking_and_putting_in_vim.md')">↑ Collapse</a>
<div class=separator></div>
</div>
</div>
</div>
</body>
</html>
|