Skip to content
Browse files

Replace cursor shape code with custom tmux version.

Requires `terminal-overrides` setting from
sjl/vitality.vim#8
  • Loading branch information...
1 parent 53926e7 commit 92641c8cf8bbe628f7c7303b600d76d45cec332a @jasoncodes committed Oct 26, 2012
Showing with 12 additions and 0 deletions.
  1. +3 −0 plugin_config.vim
  2. +9 −0 vimrc
View
3 plugin_config.vim
@@ -41,3 +41,6 @@ let g:NERDSpaceDelims = 1
" Quickfixsigns
let g:quickfixsigns_classes = ['vcsdiff']
+
+" vitality.vim
+let g:vitality_fix_cursor = 0
View
9 vimrc
@@ -7,3 +7,12 @@ source $HOME/.vim/auto_commands.vim
" `:cd` to the project root
au VimEnter * :Rooter
+
+" Use a bar cursor for insert mode under iTerm
+if exists('$TMUX')
+ let &t_SI = "\<Esc>[3 q"
+ let &t_EI = "\<Esc>[0 q"
+else
+ let &t_SI = "\<Esc>]50;CursorShape=1\x7"
+ let &t_EI = "\<Esc>]50;CursorShape=0\x7"
+endif

0 comments on commit 92641c8

Please sign in to comment.
Something went wrong with that request. Please try again.