relative line numbers
This commit is contained in:
parent
949e0eb6b2
commit
0b7c78f930
1 changed files with 7 additions and 0 deletions
7
.vimrc
7
.vimrc
|
@ -161,4 +161,11 @@ set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
|
|||
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
|
||||
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
|
||||
|
||||
"https://jeffkreeftmeijer.com/vim-number/
|
||||
set number relativenumber
|
||||
|
||||
augroup numbertoggle
|
||||
autocmd!
|
||||
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
||||
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
||||
augroup END
|
||||
|
|
Loading…
Reference in a new issue