Last active
May 4, 2021 18:44
-
-
Save thanakijwanavit/50dc5e69fb665b494bac9966caca05ac to your computer and use it in GitHub Desktop.
fishConfig for vim cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_mode_prompt | |
switch $fish_bind_mode | |
case default | |
echo -en "\e[2 q" | |
set_color -o brwhite | |
echo "[ " | |
set_color -o brred | |
echo "N" | |
set_color -o brwhite | |
echo " ]" | |
case insert | |
echo -en "\e[6 q" | |
set_color -o brwhite | |
echo "[ " | |
set_color -o brgreen | |
echo "I" | |
set_color -o brwhite | |
echo " ]" | |
case replace_one | |
echo -en "\e[4 q" | |
set_color -o brwhite | |
echo "[ " | |
set_color -o bryellow | |
echo "R" | |
set_color -o brwhite | |
echo " ]" | |
case visual | |
echo -en "\e[2 q" | |
set_color -o brwhite | |
echo "[ " | |
set_color -o brmagenta | |
echo "V" | |
set_color -o brwhite | |
echo " ]" | |
case '*' | |
echo -en "\e[2 q" | |
set_color -o brwhite | |
echo "[ " | |
set_color -o brred | |
echo "?" | |
set_color -o brwhite | |
echo " ]" | |
end | |
set_color normal | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment