Skip to content

v2.1.0: VI mode prompt

Choose a tag to compare

@edouard-lopez edouard-lopez released this 19 Feb 16:12
· 722 commits to master since this release

Changes the default behaviour of the prompt in vi mode to use whenever the user is not in insert mode. This matches the behaviour of the zsh version of Pure:

pure-vi-mode-support
Toggling between mode using Esc and i key.

Customization

We introduce a new variable to control the symbol for reverse prompt:

pure_symbol_reverse_prompt ""  # used for VI mode

And a flag to control the feature:

# VI mode indicator
# true (default):  indicate a non-insert mode by reversing the prompt symbol (❮)
# false:           indicate vi mode with [I], [N], [V]  
pure_reverse_prompt_symbol_in_vimode true

Installation

fisher add rafaelrinaldi/pure

Thanks

@codesections for his contribution 👏 #139 #140