aboutsummaryrefslogtreecommitdiff
path: root/posts
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-04-01 07:29:21 +0100
committerAkshay <[email protected]>2020-04-01 07:29:21 +0100
commitc7972dc942aea0808f4d4068dacd15ab8c73f9e2 (patch)
treefe06760d95e292ac271d6f5e180b623df0a05613 /posts
parent709f56c17a8563ef9388f85ce9faeadb1e1d07f4 (diff)
fix heading formatting
Diffstat (limited to 'posts')
-rw-r--r--posts/rapid_refactoring_with_vim.md6
1 files changed, 3 insertions, 3 deletions
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