From a86cc7a25173b8cbe67b245c474ccc93c7ee8fb3 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 23 Sep 2020 10:25:57 +0800 Subject: [PATCH 1/6] 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 "} From 6ad58314002b3807449d1dedc997f3316b2b1afd Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 23 Sep 2020 10:27:27 +0800 Subject: [PATCH 2/6] remove guicursor setting It seems that put guicursor setting here has no effect. The cursor color and shape won't change. --- ginit.vim | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ginit.vim b/ginit.vim index c3d3f4c..38ff397 100644 --- a/ginit.vim +++ b/ginit.vim @@ -3,17 +3,6 @@ inoremap + cnoremap + nnoremap -" 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') From 1ebce655abe521f8fca912d69521edd221cf2a82 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 23 Sep 2020 10:57:35 +0800 Subject: [PATCH 3/6] update fvim settings --- ginit.vim | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/ginit.vim b/ginit.vim index 38ff397..70c7872 100644 --- a/ginit.vim +++ b/ginit.vim @@ -22,12 +22,12 @@ if exists('g:fvim_loaded') FVimCursorSmoothBlink v:true " Background composition, can be 'none', 'blur' or 'acrylic' - FVimBackgroundComposition 'none' - FVimBackgroundOpacity 0.85 - FVimBackgroundAltOpacity 0.85 + FVimBackgroundComposition 'blur' + FVimBackgroundOpacity 0.9 + FVimBackgroundAltOpacity 0.9 " Title bar tweaks (themed with colorscheme) - FVimCustomTitleBar v:false + FVimCustomTitleBar v:true " Debug UI overlay FVimDrawFPS v:false @@ -40,16 +40,15 @@ if exists('g:fvim_loaded') FVimFontHintLevel 'full' FVimFontSubpixel v:true FVimFontLigature v:true - FVimFontLcdRender v:false " can be 'default', '14.0', '-1.0' etc. - FVimFontLineHeight '+2.0' + FVimFontLineHeight 'default' " Try to snap the fonts to the pixels, reduces blur " in some situations (e.g. 100% DPI). - FVimFontAutoSnap v:false + FVimFontAutoSnap v:true - " Font weight tuning, possible valuaes are 100..900 - FVimFontNormalWeight 400 + " Font weight tuning, possible values are 100..900 + FVimFontNormalWeight 100 FVimFontBoldWeight 700 FVimUIPopupMenu v:false From 31029ef933967618c4d5929ccae4f7c9a6d6cfc0 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 23 Sep 2020 15:22:28 +0800 Subject: [PATCH 4/6] Update Nvim_setup.sh --- docs/Nvim_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Nvim_setup.sh b/docs/Nvim_setup.sh index f0062d7..475f33d 100755 --- a/docs/Nvim_setup.sh +++ b/docs/Nvim_setup.sh @@ -66,7 +66,7 @@ fi # Install some Python packages used by Neovim plugins. echo "Installing Python packages" -PY_PACKAGES="pynvim jedi pylint flake8 yapf black" +PY_PACKAGES="pynvim jedi pylint flake8 yapf black vim-vint" if [[ "$SYSTEM_PYTHON" = true ]]; then echo "Using system Python to install $(PY_PACKAGES)" From d63481e787cf721e19bcc8dc2a0c298e45b716a1 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 24 Sep 2020 11:17:43 +0800 Subject: [PATCH 5/6] remove search highlight toggle mapping --- mappings.vim | 3 --- 1 file changed, 3 deletions(-) diff --git a/mappings.vim b/mappings.vim index 00e8b19..c2ba402 100644 --- a/mappings.vim +++ b/mappings.vim @@ -47,9 +47,6 @@ nnoremap \x :windo lclose cclose " window, see https://stackoverflow.com/q/4465095/6064933 nnoremap \d :bprevious bdelete # -" Toggle search highlight, see https://stackoverflow.com/a/26504944/6064933 -nnoremap hl (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n" - " Insert a blank line below or above current line (do not move the cursor), " see https://stackoverflow.com/a/16136133/6064933 nnoremap oo 'm`' . v:count1 . 'o``' From 42a92ffd6847b4f2784b1484c8f835fbb37f41f7 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 24 Sep 2020 14:09:36 +0800 Subject: [PATCH 6/6] update LeaderF settings --- plugins.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins.vim b/plugins.vim index 06a0c00..364ed92 100644 --- a/plugins.vim +++ b/plugins.vim @@ -479,8 +479,14 @@ let g:Lf_PopupPosition = [0, &columns/4] " submodules are not searched by default. let g:Lf_UseVersionControlTool = 0 +" Disable default mapping +let g:Lf_ShortcutF = '' +let g:Lf_ShortcutB = '' + " Search files in popup window nnoremap f :Leaderf file --popup +" Search vim help files +nnoremap h :Leaderf help --popup "}} "{{ URL related