From 626855ec697d07c1cb013e164d232b14d381fdb3 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 21 Oct 2024 17:16:45 +0200 Subject: [PATCH] vim:keys:TODO: Add `[hl]` v-mappings TODO: --- .config/vim/vimrc.d/40-keys.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index d472753..a28fddb 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -386,6 +386,12 @@ endfunction vmap j call ExpandVisualSelection(1) vmap k call ExpandVisualSelection(-1) +" TODO: Also map h and l that expand the visual selection over a range of lines +" as far as all the lines are identical +" +" In the above example with a visual block selection including only the +" dashes: l would now expand the selection to also include the +" `TODO: ` after (or more if `...` continues to be the same on all lines) let g:macro_type_mappings = { \ '': '_',