Skip to content

Instantly share code, notes, and snippets.

@thanakijwanavit
Created August 23, 2020 10:57
Show Gist options
  • Save thanakijwanavit/3b48cbdcf385303ce52a09cf35639531 to your computer and use it in GitHub Desktop.
Save thanakijwanavit/3b48cbdcf385303ce52a09cf35639531 to your computer and use it in GitHub Desktop.
change cursor shape in vi mode in fish
" 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