norelative numbers when entering command line
This commit is contained in:
parent
a45f19fd6a
commit
e40c0806a5
|
@ -18,10 +18,10 @@ augroup whitespaceerrors
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" automatically reload if color scheme file written
|
" automatically reload if color scheme file written
|
||||||
augroup coloreload
|
" augroup coloreload
|
||||||
autocmd!
|
" autocmd!
|
||||||
autocmd BufWritePost customred256.vim so $MYVIMRC
|
" autocmd BufWritePost customred256.vim so $MYVIMRC
|
||||||
augroup end
|
" augroup end
|
||||||
|
|
||||||
augroup linenumbering
|
augroup linenumbering
|
||||||
autocmd!
|
autocmd!
|
||||||
|
@ -29,6 +29,8 @@ 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 CmdlineLeave * :set number relativenumber
|
||||||
|
" see 'mapping nnoremap :' for setting norelative number.
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
augroup colorcolumns
|
augroup colorcolumns
|
||||||
|
|
|
@ -3,6 +3,7 @@ let g:mapleader = ' '
|
||||||
|
|
||||||
" miscallaneous
|
" miscallaneous
|
||||||
"{{{
|
"{{{
|
||||||
|
nnoremap : :setlocal norelativenumber<CR>:
|
||||||
nnoremap <silent> <space>rc :so $MYVIMRC<CR>
|
nnoremap <silent> <space>rc :so $MYVIMRC<CR>
|
||||||
nnoremap <silent> <space>nn :set invrelativenumber<CR>
|
nnoremap <silent> <space>nn :set invrelativenumber<CR>
|
||||||
nnoremap <silent><expr> <space>nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n"
|
nnoremap <silent><expr> <space>nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n"
|
||||||
|
|
Loading…
Reference in New Issue