4 ms·
I'm at work after a long vacation, so got access to my .zshrc. Here's the relevant part: #It starts in insert mode export VIMODE=INS function zle-k
by sundarurfriend 17y ago
I'm at work after a long vacation, so got access to my .zshrc. Here's the relevant part:
#It starts in insert mode
export VIMODE=INS
function zle-keymap-select {
VIMODE="${${KEYMAP/vicmd/CMD}/(main|viins)/INS}"
zle reset-prompt
}
zle -N zle-keymap-select
bindkey -v
I use Oh My Zsh, but as far as I know this should work without it too.
Wish HN had a notify-on-reply system like Reddit's orangered. Would you see this? Would you not? Would I miss eternal gratefulness from a fellow HN citizen? Oh, how I wish I knew the answer!
- nuclear_eclipse 17y agoMaybe you won't even see this ;) , but it unfortunately doesn't seem to work on my vanilla Zsh. Perhaps I'll look into OMZ a bit and see if things work out that way. Thanks anyways :)