AutoYADM commit: 2025-05-30 15:50:17
This commit is contained in:
parent
2261a4537a
commit
1086992774
2 changed files with 22 additions and 4 deletions
|
@ -4,11 +4,18 @@ map global insert <c-e> <end>
|
|||
map global insert <c-.> <a-semicolon><gt>
|
||||
map global insert <c-,> <a-semicolon><lt>
|
||||
|
||||
# autopairs
|
||||
map global insert <c-b> <a-semicolon>bi
|
||||
map global insert <c-w> <a-semicolon>wi
|
||||
|
||||
define-command -hidden insert-char-no-hook %{
|
||||
execute-keys '<a-;>\i'
|
||||
hook -always -once window InsertChar .* %{
|
||||
execute-keys '<esc>'
|
||||
}
|
||||
}
|
||||
define-command -hidden insert-no-hook %{
|
||||
execute-keys '<a-;>\i'
|
||||
echo test
|
||||
execute-keys '<esc>'
|
||||
}
|
||||
|
||||
map global insert <a-/> '<a-;>: insert-char-no-hook<ret>'
|
||||
map global insert <a-\> '<a-;>: insert-no-hook<ret>'
|
||||
map global insert <a-/> '<a-;>: insert-no-hook<ret>'
|
||||
|
|
|
@ -1,2 +1,13 @@
|
|||
declare-user-mode paragraph
|
||||
declare-option -hidden str paragraph_select '<a-a>pj[p'
|
||||
|
||||
map global user <ret> "%opt{paragraph_select}: enter-user-mode -lock paragraph<ret>"
|
||||
map global paragraph I '>' -docstring 'move right'
|
||||
map global paragraph M '<' -docstring 'move left'
|
||||
map global paragraph E "d[pP[p%opt{paragraph_select}" -docstring 'move up'
|
||||
map global paragraph N "d]pp]p[p%opt{paragraph_select}" -docstring 'move down'
|
||||
map global paragraph n "]p%opt{paragraph_select}" -docstring 'select down'
|
||||
map global paragraph e "[p%opt{paragraph_select}" -docstring 'select up'
|
||||
map global paragraph d "d%opt{paragraph_select}" -docstring 'delete'
|
||||
map global paragraph y y -docstring 'yank'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue