Set hybrid numbers
This commit is contained in:
parent
c87d105a49
commit
e250338c54
1 changed files with 5 additions and 1 deletions
|
@ -139,7 +139,7 @@ let &t_SI = "\e[5 q" " cursor beam on insert mode
|
||||||
let &t_SR = "\e[3 q" " cursor underline on replace mode
|
let &t_SR = "\e[3 q" " cursor underline on replace mode
|
||||||
let &t_EI = "\e[2 q" " cursor block otherwise
|
let &t_EI = "\e[2 q" " cursor block otherwise
|
||||||
|
|
||||||
set number " show line numbers
|
set number relativenumber " show hybrid line numbers
|
||||||
set spelllang=en,fr
|
set spelllang=en,fr
|
||||||
set showcmd " show command in bottom bar
|
set showcmd " show command in bottom bar
|
||||||
set cursorline " highlight current line
|
set cursorline " highlight current line
|
||||||
|
@ -212,6 +212,10 @@ augroup configgroup
|
||||||
" Run Flake8 on write in python files
|
" Run Flake8 on write in python files
|
||||||
autocmd BufWritePost *.py call flake8#Flake8()
|
autocmd BufWritePost *.py call flake8#Flake8()
|
||||||
|
|
||||||
|
" Toggle relative number and absolute number according to focus and insert
|
||||||
|
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
||||||
|
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
||||||
|
|
||||||
autocmd FileType c let g:ycm_extra_conf_globlist = ['~/*']
|
autocmd FileType c let g:ycm_extra_conf_globlist = ['~/*']
|
||||||
autocmd FileType java setlocal noexpandtab
|
autocmd FileType java setlocal noexpandtab
|
||||||
autocmd FileType java setlocal list
|
autocmd FileType java setlocal list
|
||||||
|
|
Loading…
Add table
Reference in a new issue