aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc21
1 files changed, 21 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 4a02d45..bb65f54 100644
--- a/.vimrc
+++ b/.vimrc
@@ -95,3 +95,24 @@ Plug 'tpope/vim-surround'
Plug 'junegunn/fzf'
call plug#end()
+" Use a line cursor within insert mode and a block cursor everywhere else.
+"
+" Reference chart of values:
+" Ps = 0 -> blinking block.
+" Ps = 1 -> blinking block (default).
+" Ps = 2 -> steady block.
+" Ps = 3 -> blinking underline.
+" Ps = 4 -> steady underline.
+" Ps = 5 -> blinking bar (xterm).
+" Ps = 6 -> steady bar (xterm).
+let &t_SI = "\e[6 q"
+let &t_EI = "\e[2 q"
+
+" Fix the cursor change timeout between insert and normal mode (see function
+" above)
+"
+"
+set ttimeout
+set ttimeoutlen=1
+set listchars=tab:>-,trail:~,extends:>,precedes:<,space:.
+set ttyfast