software/vim.md
... ...
@@ -176,7 +176,8 @@ save file as new file in dir of current buffer
176 176
```
177 177
178 178
## substitute on multiple lines
179
-https://stackoverflow.com/a/19996145
179
+[stackoverflow 19996145][]
180
+
180 181
```
181 182
:6,10s/<search_string>/<replace_string>/g | 14,18&&
182 183
```
... ...
@@ -194,7 +195,7 @@ https://stackoverflow.com/a/19996145
194 195
* use `.w!` if file doesn't exist
195 196
196 197
## sort visual block
197
-https://vim.fandom.com/wiki/How_to_sort_using_visual_blocks
198
+[vim fandom][]
198 199
```
199 200
:'<,'>sort /\ze\%V/
200 201
```
... ...
@@ -240,3 +241,5 @@ https://vim.fandom.com/wiki/How_to_sort_using_visual_blocks
240 241
[buffers over tabs]: https://stackoverflow.com/questions/26708822/why-do-vim-experts-prefer-buffers-over-tabs
241 242
[reddit]: https://www.reddit.com/r/vim/comments/a1lvb1/til_gca_for_creating_a_column_of_incrementing/
242 243
[vim and the shell]: https://vimways.org/2019/vim-and-the-shell/
244
+[stackoverflow 19996145]: https://stackoverflow.com/a/19996145
245
+[vim fandom]: https://vim.fandom.com/wiki/How_to_sort_using_visual_blocks