From 36de495cd8839b8eab511b4839dea2f1a9df0654 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 5 Mar 2020 01:08:34 +0800 Subject: [PATCH] Change cursor color and shape --- ui.vim | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ui.vim b/ui.vim index acca9c4..c85be4b 100644 --- a/ui.vim +++ b/ui.vim @@ -1,4 +1,4 @@ -"{ Colorscheme and highlight settings +"{ UI-related settings "{{ General settings about colors " Enable true colors support. Do not use this option if your terminal does not " support true colors! For a comprehensive list of terminals supporting true @@ -51,4 +51,14 @@ endif " let g:badwolf_tabline = 2 " colorscheme badwolf "}} + +"{{ Cursor colors and shapes +" highlight groups for cursor color +highlight Cursor cterm=bold gui=bold guibg=cyan guifg=black +highlight Cursor2 guifg=red guibg=red + +" Set up cursor color and shape in various mode, ref: +" https://github.com/neovim/neovim/wiki/FAQ#how-to-change-cursor-color-in-the-terminal +set guicursor=n-v-c:block-Cursor/lCursor,i-ci-ve:ver25-Cursor2/lCursor2,r-cr:hor20,o:hor20 +"}} "}