aboutsummaryrefslogtreecommitdiff
path: root/ginit.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-09-22 22:25:23 +0800
committerjdhao <jdhao@hotmail.com>2020-09-22 22:25:23 +0800
commitd1b5076f9d05f8c8bfa738a29ac7920e1f888aa4 (patch)
tree3e3aee01647314ab0ab20067d1f8163a8fa5dd62 /ginit.vim
parent98c81c14889c8c385d51368b14c280f3ce5530b6 (diff)
move guicursor setting to ginit.vim
Diffstat (limited to 'ginit.vim')
-rw-r--r--ginit.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/ginit.vim b/ginit.vim
index 38ff397..c3d3f4c 100644
--- a/ginit.vim
+++ b/ginit.vim
@@ -3,6 +3,17 @@ inoremap <silent> <S-Insert> <C-R>+
cnoremap <S-Insert> <C-R>+
nnoremap <silent> <C-6> <C-^>
+" Highlight groups for cursor color
+augroup cusor_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
+
" To check if neovim-qt is running, use `exists('g:GuiLoaded')`,
" see https://github.com/equalsraf/neovim-qt/issues/219
if exists('g:GuiLoaded')