dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit a5d1510052c8bea413b43eddbd88b92794091c1c
parent 83dd9b39381fac7c76093b1ba8fc53d379c3123a
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue, 30 Jul 2019 17:15:18 +0200

vim: change cursor in insert vs normal mode

Former-commit-id: 54f6d6d0fc3208be6954a0c204d3310dd8baa7f5
Diffstat:
Mvim/vimrc | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/vim/vimrc b/vim/vimrc @@ -368,6 +368,12 @@ set sessionoptions=buffers,curdir,folds,globals,localoptions,options,resize,tabp if has('conceallevel') set conceallevel=0 endif +" +" 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 " Highlight current line set cursorline