grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit 6f13a07f2a69a4637e48d63eab58e5bbdd24c49e
parent bc9066be9a20b176e686afb5955d12f2aa2298e0
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri, 25 Nov 2022 17:12:17 +0000

updates

Diffstat:
Msoftware/vim.md | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

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