Created
August 23, 2020 10:57
-
-
Save thanakijwanavit/3b48cbdcf385303ce52a09cf35639531 to your computer and use it in GitHub Desktop.
change cursor shape in vi mode in fish
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
| " Change cursor shape between insert and normal mode in iTerm2.app | |
| if $TERM_PROGRAM =~ "iTerm" | |
| let &t_SI = "\<Esc>]50;CursorShape=1\x7" " Vertical bar in insert mode | |
| let &t_EI = "\<Esc>]50;CursorShape=0\x7" " Block in normal mode | |
| endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment