From a86cc7a25173b8cbe67b245c474ccc93c7ee8fb3 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 23 Sep 2020 10:25:57 +0800 Subject: [PATCH] move guicursor setting to option.vim --- options.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/options.vim b/options.vim index f490c6f..f1ff3a3 100644 --- a/options.vim +++ b/options.vim @@ -168,4 +168,15 @@ if executable('rg') set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case set grepformat=%f:%l:%c:%m endif + +" Highlight groups for cursor color +augroup cursor_color + autocmd! + autocmd ColorScheme * highlight Cursor cterm=bold gui=bold guibg=cyan guifg=black + autocmd ColorScheme * highlight Cursor2 guifg=red guibg=red +augroup END + +" 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 "}