diff options
Diffstat (limited to 'posts/rapid_refactoring_with_vim.md')
-rw-r--r-- | posts/rapid_refactoring_with_vim.md | 6 |
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 | ||
39 | For the initial pass, I decided to handle imports, this was | 39 | For the initial pass, I decided to handle imports, this was |
40 | a simple find and replace operation, done to all the files | 40 | a 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 | ||
77 | Next up, replacing `r#" ... "#` with `json!( ... )`. I | 77 | Next up, replacing `r#" ... "#` with `json!( ... )`. I |
78 | couldn't search and replace that trivially, so I went with a | 78 | couldn'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 | |||
148 | But, I had to manually pick out matches, and it involved | 148 | But, I had to manually pick out matches, and it involved |
149 | some button mashing. | 149 | some button mashing. |
150 | 150 | ||
151 | ## External Filtering | 151 | ### External Filtering |
152 | 152 | ||
153 | Some code reviews later, I was asked to format all the json | 153 | Some code reviews later, I was asked to format all the json |
154 | inside the `json!` macro. All you have to do is pass a | 154 | inside the `json!` macro. All you have to do is pass a |