fix: line numbering during CmdlineEnter
This commit is contained in:
parent
9172589ce8
commit
42d218f28e
2
vimrc
2
vimrc
|
@ -302,6 +302,7 @@ nnoremap <space>cc :call ToggleColorPreview()<CR>
|
||||||
nnoremap <space>ci :ColorVInsert<CR>
|
nnoremap <space>ci :ColorVInsert<CR>
|
||||||
nnoremap <space>cp :ColorVPicker<CR>
|
nnoremap <space>cp :ColorVPicker<CR>
|
||||||
|
|
||||||
|
let w:colorv_is_previewing = 0
|
||||||
function! ToggleColorPreview() abort "{{{
|
function! ToggleColorPreview() abort "{{{
|
||||||
if !exists('w:colorv_is_previewing')
|
if !exists('w:colorv_is_previewing')
|
||||||
let w:colorv_is_previewing = 0
|
let w:colorv_is_previewing = 0
|
||||||
|
@ -1167,6 +1168,7 @@ augroup linenumbering
|
||||||
autocmd InsertLeave * :set number relativenumber
|
autocmd InsertLeave * :set number relativenumber
|
||||||
autocmd WinEnter * :set number relativenumber
|
autocmd WinEnter * :set number relativenumber
|
||||||
autocmd WinLeave * set norelativenumber
|
autocmd WinLeave * set norelativenumber
|
||||||
|
autocmd CmdlineEnter * :redraw | :set norelativenumber
|
||||||
autocmd CmdlineLeave * :set number relativenumber
|
autocmd CmdlineLeave * :set number relativenumber
|
||||||
" see 'mapping nnoremap :' for setting norelative number.
|
" see 'mapping nnoremap :' for setting norelative number.
|
||||||
augroup END
|
augroup END
|
||||||
|
|
Loading…
Reference in New Issue