-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
24 lines (23 loc) · 781 Bytes
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
set tabstop=4
set shiftwidth=4
set expandtab
" Configuring cursor
" http://vim.wikia.com/wiki/Configuring_the_cursor
" Tmux details: http://reza.jelveh.me/2011/09/18/zsh-tmux-vi-mode-cursor
if &term =~ "xterm\\|rxvt"
" Insert
let &t_SI = "\<Esc>]12;gray\x7"
let &t_SI .= "\<Esc>[3 q"
" Normal
let &t_EI = "\<Esc>]12;green\x7"
let &t_EI .= "\<Esc>[2 q"
autocmd VimLeave * silent !echo -ne "\033]112\007"
elseif &term =~ "screen-it"
" Insert
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]12;gray\x7\<Esc>\\"
let &t_SI .= "\<Esc>Ptmux;\<Esc>\<Esc>[3 q\<Esc>\\"
" Normal
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]12;blue\x7\<Esc>\\"
let &t_EI .= "\<Esc>Ptmux;\<Esc>\<Esc>[2 q\<Esc>\\"
autocmd VimLeave * silent !printf "\033Ptmux;\033\033]12;grey\007\033\\"
endif