aboutsummaryrefslogtreecommitdiff
path: root/posts/rapid_refactoring_with_vim.md
diff options
context:
space:
mode:
Diffstat (limited to 'posts/rapid_refactoring_with_vim.md')
-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