added segment to change cursor depending on vi mode (doesn't work with Tmux though)