norelative numbers when entering command line

This commit is contained in:
ManjaroOne666 2018-05-10 16:34:22 +01:00
parent a45f19fd6a
commit e40c0806a5
2 changed files with 7 additions and 4 deletions

View File

@ -18,10 +18,10 @@ augroup whitespaceerrors
augroup END
" automatically reload if color scheme file written
augroup coloreload
autocmd!
autocmd BufWritePost customred256.vim so $MYVIMRC
augroup end
" augroup coloreload
" autocmd!
" autocmd BufWritePost customred256.vim so $MYVIMRC
" augroup end
augroup linenumbering
autocmd!
@ -29,6 +29,8 @@ augroup linenumbering
autocmd InsertLeave * :set number relativenumber
autocmd WinEnter * :set number relativenumber
autocmd WinLeave * set norelativenumber
autocmd CmdlineLeave * :set number relativenumber
" see 'mapping nnoremap :' for setting norelative number.
augroup END
augroup colorcolumns

View File

@ -3,6 +3,7 @@ let g:mapleader = ' '
" miscallaneous
"{{{
nnoremap : :setlocal norelativenumber<CR>:
nnoremap <silent> <space>rc :so $MYVIMRC<CR>
nnoremap <silent> <space>nn :set invrelativenumber<CR>
nnoremap <silent><expr> <space>nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n"