From d332caa2543eacc91f827011c43292aa62fe0113 Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 12 Dec 2018 09:23:03 +0000 Subject: [PATCH] feature check --- vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 1e5c939..897179e 100644 --- a/vimrc +++ b/vimrc @@ -1236,8 +1236,10 @@ iabbrev ct'' content-type: ''; autocmd InsertLeave * :set number relativenumber autocmd WinEnter * :set number relativenumber autocmd WinLeave * set norelativenumber - autocmd CmdlineEnter * :redraw | :set norelativenumber - autocmd CmdlineLeave * :set number relativenumber + if has('##CmdlineEnter') + autocmd CmdlineEnter * :redraw | :set norelativenumber + autocmd CmdlineLeave * :set number relativenumber + endif " see 'mapping nnoremap :' for setting norelative number. augroup END