norelative numbers when entering command line
This commit is contained in:
parent
a45f19fd6a
commit
e40c0806a5
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue