AutoYADM commit: 2025-05-30 15:20:09

This commit is contained in:
Daniel Fichtinger 2025-05-30 15:20:09 -04:00
parent 0e82ccfdb9
commit 9a4b67daaf
4 changed files with 11 additions and 6 deletions

View file

@ -46,7 +46,7 @@ map global normal <c-m> "<c-h>"
map global normal <c-n> "<c-j>"
map global normal <c-e> "<c-k>"
map global normal <c-i> "<c-l>"
map global normal <c-h> "<c-i>"
# map global normal <c-h> "<c-i>"
map global normal <c-k> "<c-m>"
map global normal <c-j> "<c-n>"
map global normal <c-l> "<c-e>"

View file

@ -7,22 +7,23 @@ define-command -hidden select-current-hump %{
}
define-command -hidden select-next-hump %{
execute-keys /[A-Z][a-z]+|[A-Z]+|[a-z]+<ret>
execute-keys /[A-Z][a-z]+|[A-Z]+|[a-z]+<ret><a-:>
}
define-command -hidden select-previous-hump %{
execute-keys <a-/>[A-Z][a-z]+|[A-Z]+|[a-z]+<ret><a-semicolon>
execute-keys <a-/>[A-Z][a-z]+|[A-Z]+|[a-z]+<ret><a-:><a-semicolon>
}
define-command -hidden extend-next-hump %{
execute-keys ?[A-Z][a-z]+|[A-Z]+|[a-z]+<ret>
execute-keys ?[A-Z][a-z]+|[A-Z]+|[a-z]+<ret><a-:>
}
define-command -hidden extend-previous-hump %{
execute-keys <a-?>[A-Z][a-z]+|[A-Z]+|[a-z]+<ret>
execute-keys <a-?>[A-Z][a-z]+|[A-Z]+|[a-z]+<ret><a-:><a-semicolon>
}
map global normal <c-b> ': select-previous-hump<ret>' -docstring 'select prev hump'
map global normal <c-w> ': select-next-hump<ret>' -docstring 'select next hump'
map global normal <c-B> ': extend-previous-hump<ret>' -docstring 'extend prev hump'
map global normal <c-W> ': extend-next-hump<ret>' -docstring 'extend next hump'
map global normal <c-h> ': select-current-hump<ret>' -docstring 'select current hump'

View file

@ -0,0 +1,4 @@
map global insert <c-a> <home>
map global insert <c-e> <end>
map global insert <c-.> <a-;><gt>
map global insert <c-,> <a-;><lt>

View file

@ -144,4 +144,4 @@ map -docstring 'open debug buffer' global user D ':goto-debug<ret>'
# jumplist
# map -docstring 'jump forward' global normal <c-f> <c-i>
map -docstring 'save to jumplist' global normal <a-s> <c-s>
# map -docstring 'save to jumplist' global normal <a-s> <c-s>