fix: line numbering during CmdlineEnter

This commit is contained in:
ManjaroOne666 2018-11-05 11:36:45 +00:00
parent 9172589ce8
commit 42d218f28e
1 changed files with 2 additions and 0 deletions

2
vimrc
View File

@ -302,6 +302,7 @@ nnoremap <space>cc :call ToggleColorPreview()<CR>
nnoremap <space>ci :ColorVInsert<CR>
nnoremap <space>cp :ColorVPicker<CR>
let w:colorv_is_previewing = 0
function! ToggleColorPreview() abort "{{{
if !exists('w:colorv_is_previewing')
let w:colorv_is_previewing = 0
@ -1167,6 +1168,7 @@ augroup linenumbering
autocmd InsertLeave * :set number relativenumber
autocmd WinEnter * :set number relativenumber
autocmd WinLeave * set norelativenumber
autocmd CmdlineEnter * :redraw | :set norelativenumber
autocmd CmdlineLeave * :set number relativenumber
" see 'mapping nnoremap :' for setting norelative number.
augroup END