fix linenumbers

This commit is contained in:
Jidbo 2021-01-31 13:48:16 +01:00
parent 814f5409d0
commit e0d15d1c18
Signed by untrusted user: jidbo
GPG key ID: 54C320BF0E44C5CA
2 changed files with 1 additions and 9 deletions

View file

@ -3,13 +3,6 @@
" auto reload .vimrc on write " auto reload .vimrc on write
autocmd BufWritePost init.vim source % autocmd BufWritePost init.vim source %
" toggle hybrid number mode
:augroup numbertoggle
: autocmd!
: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
:augroup END
" Delete buffer while keeping window layout (don't close buffer's windows). " Delete buffer while keeping window layout (don't close buffer's windows).
" Version 2008-11-18 from http://vim.wikia.com/wiki/VimTip165 " Version 2008-11-18 from http://vim.wikia.com/wiki/VimTip165
if v:version < 700 || exists('loaded_bclose') || &cp if v:version < 700 || exists('loaded_bclose') || &cp

View file

@ -11,7 +11,7 @@ set background=dark
hi MatchParen guibg=NONE guifg=red gui=bold hi MatchParen guibg=NONE guifg=red gui=bold
" random settings " random settings
set number set rnu
set clipboard=unnamed set clipboard=unnamed
set mouse=nvi set mouse=nvi
" set smarttab " set smarttab
@ -27,7 +27,6 @@ set history=250
set noshowmode set noshowmode
" tabs and line wrap " tabs and line wrap
set tabstop=4
set wrapmargin=8 set wrapmargin=8
set softtabstop=0 noexpandtab set softtabstop=0 noexpandtab
set shiftwidth=4 set shiftwidth=4