Skip to content
Discussion options

You must be logged in to vote

In this specific case, macros don't need to prompt for an arg/param:

# example keystrokes: <backspace>e4;
# assumptions:
# - `C-s` bound to `save_selection`
# - `C-o` bound to `jump_backward`
[keys.normal.backspace]
# generic and manual
e.n = "@<C-s>%|expand -t"
# concrete and auto
e.2 = "@<C-s>%|expand -t2<ret><C-o>"
e.3 = "@<C-s>%|expand -t3<ret><C-o>"
e.4 = "@<C-s>%|expand -t4<ret><C-o>"
e.6 = "@<C-s>%|expand -t6<ret><C-o>"
e.8 = "@<C-s>%|expand -t8<ret><C-o>"
u.n = "@<C-s>%|unexpand -t"
u.2 = "@<C-s>%|unexpand -t2<ret><C-o>"
u.3 = "@<C-s>%|unexpand -t3<ret><C-o>"
u.4 = "@<C-s>%|unexpand -t4<ret><C-o>"
u.6 = "@<C-s>%|unexpand -t6<ret><C-o>"
u.8 = "@<C-s>%|unexpand -t8<ret><C-o>"

it's f…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@groutoutlook
Comment options

@Rudxain
Comment options

@groutoutlook
Comment options

Answer selected by Rudxain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants