Open d9k opened 1 month ago
Hi @d9k
Thanks for your information. May I know if the feature alt + .
is from aother third-party plugin?
Thanks & Regards
No, I think it's built-in zsh / bash feature
Try adding this to your zshrc
:
# Normal mode
function append-last-word { ((++CURSOR)); zle insert-last-word; }
zle -N append-last-word
bindkey -M vicmd '\e.' append-last-word
# Insert mode
bindkey -M viins '\e.' insert-last-word
See also https://unix.stackexchange.com/questions/685008/how-to-use-alt-in-zsh-with-vim-bindings
General information
Problem description
alt + .
in insert mode doesn't substitute to last argument! Very inconvenient.