AutoYADM commit: 2025-07-01 15:24:24
This commit is contained in:
parent
4c7960a6a8
commit
163abe5562
4 changed files with 42 additions and 15 deletions
|
@ -1,11 +1,20 @@
|
|||
declare-option -hidden str mark_saved
|
||||
define-command mark-save %{
|
||||
execute-keys '"jZ'
|
||||
}
|
||||
define-command mark-restore %{
|
||||
execute-keys '"jz'
|
||||
try %{
|
||||
execute-keys '"jZ'
|
||||
echo "Mark saved"
|
||||
} catch %{
|
||||
info "Couldn't save mark!"
|
||||
}
|
||||
}
|
||||
|
||||
map global normal <c-s-y> ': echo hi<ret>'
|
||||
# map global normal <c-Y> ': mark-save<ret>'
|
||||
define-command mark-restore %{
|
||||
try %{
|
||||
execute-keys '"jz'
|
||||
echo "Mark restored"
|
||||
} catch %{
|
||||
info "Couldn't restore mark!"
|
||||
}
|
||||
}
|
||||
|
||||
map global normal <c-Y> ': mark-save<ret>'
|
||||
map global normal <c-y> ': mark-restore<ret>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue