diff options
| author | jdhao <jdhao@hotmail.com> | 2020-09-24 22:45:00 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-09-24 22:45:00 +0800 |
| commit | b0d5b9765e0a400b9b1a50b3dc7d4f9399a95a55 (patch) | |
| tree | 4c419148b282d0dbcb9c47abb722f8dbebe124f3 /options.vim | |
| parent | 9a8126c3571abdf9bcbd11f432c44e5b3b54c4a6 (diff) | |
| parent | 42a92ffd6847b4f2784b1484c8f835fbb37f41f7 (diff) | |
Merge branch 'master' of https://github.com/jdhao/nvim-config
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 "} |
