From 90cbbb581cf961f6b6a36d8a49a58fc1887f51c7 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Sun, 4 Dec 2011 12:34:31 -0600 Subject: [PATCH] (iTerm2 only) change cursor based on console Vim's mode --- editors/vim/ui.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editors/vim/ui.vim b/editors/vim/ui.vim index 645fa80..5d09601 100644 --- a/editors/vim/ui.vim +++ b/editors/vim/ui.vim @@ -135,3 +135,9 @@ syntax on " For when other people use my setup nmap \ + + " May only work in iTerm2 and may have other bad effects, + " but this shows a block in normal mode, and vertical bar + " in insert mode. + let &t_SI = "\]50;CursorShape=1\x7" + let &t_EI = "\]50;CursorShape=0\x7"