From c7972dc942aea0808f4d4068dacd15ab8c73f9e2 Mon Sep 17 00:00:00 2001
From: Akshay
For the initial pass, I decided to handle imports, this was a simple find and replace operation, done to all the files @@ -79,7 +79,7 @@ every file in the arglist:
:argdo s/from_str/from_value/g
-Next up, replacing r#" ... "#
with json!( ... )
. I
couldn't search and replace that trivially, so I went with a
@@ -144,7 +144,7 @@ the list, vim indicates your index:
But, I had to manually pick out matches, and it involved some button mashing.
-Some code reviews later, I was asked to format all the json
inside the json!
macro. All you have to do is pass a
@@ -215,7 +215,7 @@ another register if it works as intended. I think of qq
as
https://peppe.rs/posts/rapid_refactoring_with_vim/
-
For the initial pass, I decided to handle imports, this was a simple find and replace operation, done to all the files @@ -103,7 +103,7 @@ every file in the arglist:
:argdo s/from_str/from_value/g
-Next up, replacing r#" ... "#
with json!( ... )
. I
couldn't search and replace that trivially, so I went with a
@@ -168,7 +168,7 @@ the list, vim indicates your index:
But, I had to manually pick out matches, and it involved some button mashing.
-Some code reviews later, I was asked to format all the json
inside the json!
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:
}
```
-## The arglist
+### The arglist
For the initial pass, I decided to handle imports, this was
a simple find and replace operation, done to all the files
@@ -72,7 +72,7 @@ every file in the arglist:
:argdo s/from_str/from_value/g
```
-## The quickfix list
+### The quickfix list
Next up, replacing `r#" ... "#` with `json!( ... )`. I
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
But, I had to manually pick out matches, and it involved
some button mashing.
-## External Filtering
+### External Filtering
Some code reviews later, I was asked to format all the json
inside the `json!` macro. All you have to do is pass a
--
cgit v1.2.3