aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-07-26 00:50:26 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-07-26 00:51:31 +0200
commit70ab4732ca3c882ed3aab6d31dc6d9af7d27b309 (patch)
treec441f16c701110138ecc32fff9e5e0104fd3c8be
parent638ce253199858562145bbeecdb0f449ad0423f5 (diff)
downloaddotfiles-70ab4732ca3c882ed3aab6d31dc6d9af7d27b309.tar.gz
vim: Cursor color + shape
-rw-r--r--.vim/vimrc15
1 files changed, 14 insertions, 1 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index 8f285b2..2beac5b 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -19,6 +19,19 @@ let g:airline#extensions#branch#enabled = 1
let g:airline#extensions#whitespace#enabled = 1
let g:airline_powerline_fonts = 1
+"All things cursor
+set guicursor+=a:blinkon0 "disable blinking
+if &term =~ "xterm\\|rxvt"
+ " 1 or 0 -> blinking block
+ " 2 -> solid block
+ " 3 -> blinking underscore
+ " 4 -> solid underscore
+ " 5 -> blinking vertical bar
+ " 6 -> solid vertical bar
+ let &t_SI .= "\<Esc>[6 q" " Normal
+ let &t_EI .= "\<Esc>[2 q" " Insert
+endif
+
"show line endings and tabs
set listchars=tab:>\ ,trail:~,extends:>,precedes:<
set list
@@ -109,7 +122,7 @@ function Run_in_terminal(prog)
endif
tabnew
- execute "terminal ++curwin" . a:prog
+ execute "terminal ++curwin " . a:prog
startinsert
endfunction