diff options
| author | jdhao <jdhao@hotmail.com> | 2020-09-23 10:25:57 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 10:25:57 +0800 |
| commit | a86cc7a25173b8cbe67b245c474ccc93c7ee8fb3 (patch) | |
| tree | 30161e09f557996658fc575c5585908c752ffa60 /options.vim | |
| parent | d1b5076f9d05f8c8bfa738a29ac7920e1f888aa4 (diff) | |
move guicursor setting to option.vim
Diffstat (limited to 'options.vim')
| -rw-r--r-- | options.vim | 11 |
1 files changed, 11 insertions, 0 deletions
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 "} |
