aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/index.xml8
-rw-r--r--docs/posts/rapid_refactoring_with_vim/index.html6
-rw-r--r--posts/rapid_refactoring_with_vim.md6
3 files changed, 10 insertions, 10 deletions
diff --git a/docs/index.xml b/docs/index.xml
index 5f472fa..283d364 100644
--- a/docs/index.xml
+++ b/docs/index.xml
@@ -47,7 +47,7 @@ prefixed with the arrow):</p>
47 } 47 }
48</code></pre> 48</code></pre>
49 49
50<h2 id="The%20arglist">The arglist</h2> 50<h3 id="The%20arglist">The arglist</h3>
51 51
52<p>For the initial pass, I decided to handle imports, this was 52<p>For the initial pass, I decided to handle imports, this was
53a simple find and replace operation, done to all the files 53a simple find and replace operation, done to all the files
@@ -79,7 +79,7 @@ every file in the arglist:</p>
79<pre><code>:argdo s&#47;from_str&#47;from_value&#47;g 79<pre><code>:argdo s&#47;from_str&#47;from_value&#47;g
80</code></pre> 80</code></pre>
81 81
82<h2 id="The%20quickfix%20list">The quickfix list</h2> 82<h3 id="The%20quickfix%20list">The quickfix list</h3>
83 83
84<p>Next up, replacing <code>r#&#34; ... &#34;#</code> with <code>json!( ... )</code>. I 84<p>Next up, replacing <code>r#&#34; ... &#34;#</code> with <code>json!( ... )</code>. I
85couldn&#39;t search and replace that trivially, so I went with a 85couldn&#39;t search and replace that trivially, so I went with a
@@ -144,7 +144,7 @@ the list, vim indicates your index:</p>
144<p>But, I had to manually pick out matches, and it involved 144<p>But, I had to manually pick out matches, and it involved
145some button mashing.</p> 145some button mashing.</p>
146 146
147<h2 id="External%20Filtering">External Filtering</h2> 147<h3 id="External%20Filtering">External Filtering</h3>
148 148
149<p>Some code reviews later, I was asked to format all the json 149<p>Some code reviews later, I was asked to format all the json
150inside the <code>json!</code> macro. All you have to do is pass a 150inside the <code>json!</code> macro. All you have to do is pass a
@@ -215,7 +215,7 @@ another register if it works as intended. I think of <code>qq</code> as
215</ol> 215</ol>
216</div></description> 216</div></description>
217<link>https://peppe.rs/posts/rapid_refactoring_with_vim/</link> 217<link>https://peppe.rs/posts/rapid_refactoring_with_vim/</link>
218<pubDate>Wed, 01 Apr 2020 06:25:00 +0000</pubDate> 218<pubDate>Wed, 01 Apr 2020 06:29:00 +0000</pubDate>
219<guid>https://peppe.rs/posts/rapid_refactoring_with_vim/</guid> 219<guid>https://peppe.rs/posts/rapid_refactoring_with_vim/</guid>
220</item> 220</item>
221<item> 221<item>
diff --git a/docs/posts/rapid_refactoring_with_vim/index.html b/docs/posts/rapid_refactoring_with_vim/index.html
index 4e33a31..00c9a80 100644
--- a/docs/posts/rapid_refactoring_with_vim/index.html
+++ b/docs/posts/rapid_refactoring_with_vim/index.html
@@ -71,7 +71,7 @@ prefixed with the arrow):</p>
71 } 71 }
72</code></pre> 72</code></pre>
73 73
74<h2 id="The%20arglist">The arglist</h2> 74<h3 id="The%20arglist">The arglist</h3>
75 75
76<p>For the initial pass, I decided to handle imports, this was 76<p>For the initial pass, I decided to handle imports, this was
77a simple find and replace operation, done to all the files 77a simple find and replace operation, done to all the files
@@ -103,7 +103,7 @@ every file in the arglist:</p>
103<pre><code>:argdo s&#47;from_str&#47;from_value&#47;g 103<pre><code>:argdo s&#47;from_str&#47;from_value&#47;g
104</code></pre> 104</code></pre>
105 105
106<h2 id="The%20quickfix%20list">The quickfix list</h2> 106<h3 id="The%20quickfix%20list">The quickfix list</h3>
107 107
108<p>Next up, replacing <code>r#&#34; ... &#34;#</code> with <code>json!( ... )</code>. I 108<p>Next up, replacing <code>r#&#34; ... &#34;#</code> with <code>json!( ... )</code>. I
109couldn&#39;t search and replace that trivially, so I went with a 109couldn&#39;t search and replace that trivially, so I went with a
@@ -168,7 +168,7 @@ the list, vim indicates your index:</p>
168<p>But, I had to manually pick out matches, and it involved 168<p>But, I had to manually pick out matches, and it involved
169some button mashing.</p> 169some button mashing.</p>
170 170
171<h2 id="External%20Filtering">External Filtering</h2> 171<h3 id="External%20Filtering">External Filtering</h3>
172 172
173<p>Some code reviews later, I was asked to format all the json 173<p>Some code reviews later, I was asked to format all the json
174inside the <code>json!</code> macro. All you have to do is pass a 174inside the <code>json!</code> macro. All you have to do is pass a
diff --git a/posts/rapid_refactoring_with_vim.md b/posts/rapid_refactoring_with_vim.md
index 66ca0e3..4dd3186 100644
--- a/posts/rapid_refactoring_with_vim.md
+++ b/posts/rapid_refactoring_with_vim.md
@@ -34,7 +34,7 @@ had to be converted to:
34 } 34 }
35``` 35```
36 36
37## The arglist 37### The arglist
38 38
39For the initial pass, I decided to handle imports, this was 39For the initial pass, I decided to handle imports, this was
40a simple find and replace operation, done to all the files 40a simple find and replace operation, done to all the files
@@ -72,7 +72,7 @@ every file in the arglist:
72:argdo s/from_str/from_value/g 72:argdo s/from_str/from_value/g
73``` 73```
74 74
75## The quickfix list 75### The quickfix list
76 76
77Next up, replacing `r#" ... "#` with `json!( ... )`. I 77Next up, replacing `r#" ... "#` with `json!( ... )`. I
78couldn't search and replace that trivially, so I went with a 78couldn't search and replace that trivially, so I went with a
@@ -148,7 +148,7 @@ And just like `argdo`, you can `cdo` to apply commands to
148But, I had to manually pick out matches, and it involved 148But, I had to manually pick out matches, and it involved
149some button mashing. 149some button mashing.
150 150
151## External Filtering 151### External Filtering
152 152
153Some code reviews later, I was asked to format all the json 153Some code reviews later, I was asked to format all the json
154inside the `json!` macro. All you have to do is pass a 154inside the `json!` macro. All you have to do is pass a