AutoYADM commit: 2025-07-15 16:53:58
This commit is contained in:
parent
933ee7c7f0
commit
8f2b359812
1 changed files with 13 additions and 3 deletions
|
@ -15,9 +15,6 @@ insert-date -params 0.. %{
|
||||||
alias global date insert-date
|
alias global date insert-date
|
||||||
|
|
||||||
define-command -params 2 \
|
define-command -params 2 \
|
||||||
-docstring %{
|
|
||||||
Swap all occurence of param A with param B in selections.
|
|
||||||
} \
|
|
||||||
swap %{
|
swap %{
|
||||||
evaluate-commands -save-regs | %{
|
evaluate-commands -save-regs | %{
|
||||||
set-register | %exp{
|
set-register | %exp{
|
||||||
|
@ -28,6 +25,19 @@ swap %{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
define-command -params 2 \
|
||||||
|
-docstring %{
|
||||||
|
Swap all occurence of param A with param B in selections.
|
||||||
|
} \
|
||||||
|
swap-buffer %{
|
||||||
|
evaluate-commands -save-regs "ab" -draft %{
|
||||||
|
set-register a %arg{1}
|
||||||
|
set-register b %arg{2}
|
||||||
|
execute-keys "<percent>s\Q<c-r>a\E|\Q<c-r>b\E<ret>"
|
||||||
|
swap "%arg{1}" "%arg{2}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
define-command regswap -params 2 %{
|
define-command regswap -params 2 %{
|
||||||
evaluate-commands -draft -save-regs "abcd" %{
|
evaluate-commands -draft -save-regs "abcd" %{
|
||||||
set-register a %arg{1}
|
set-register a %arg{1}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue