From: Jannik ZANDER Date: Mon, 9 Jul 2018 13:02:08 +0000 (+0200) Subject: Relative numbers X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=762500bc23857505130d223b834517711ee346c7;p=dotfiles.git Relative numbers --- diff --git a/.vim/vimrc b/.vim/vimrc index 7210aba..f2b0599 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -5,27 +5,22 @@ syntax enable " Use :help 'option' to see the documentation for the given option. set shell=/bin/bash set path=.,,**,C:\programs\IAR\\\ System\EWB_V850_V360\common\bin -set printoptions=paper:A4 +set sessionoptions-=options + +" files set fileformats=unix,dos,mac -set history=1000 -set tabpagemax=50 -set t_Co=256 -set background=dark -set updatetime=250 +set fileignorecase set wildignore+=tags,.*.un~,*.pyc -set number -set sessionoptions-=options -set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+ -set formatoptions+=j setglobal tags-=./tags tags-=./tags; tags^=./tags; -set lazyredraw -set shiftround -set shortmess=aoOtI -" edit +" copy and paste set virtualedit=block set clipboard=unnamed +" format +set formatoptions+=j +set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+ + " buffers silent !mkdir -p ~/.vim/undo set viminfo+=n~/.vim/viminfo @@ -43,6 +38,7 @@ set autoindent set smarttab set breakindent showbreak=\ + set linebreak +set shiftround " search set incsearch @@ -59,11 +55,16 @@ set wildmenu set wildmode=longest:full,full set showcmd set cmdheight=2 +set shortmess=aoOtI +set history=1000 " scroll set scrolloff=1 set sidescrolloff=5 set display+=lastline +set lazyredraw +set relativenumber +set cursorline " fold set foldmethod=syntax @@ -84,9 +85,19 @@ set timeoutlen=500 set winaltkeys=no set visualbell +" colors and fonts +set t_Co=256 +set background=dark +let &t_ti.="\e[1 q" +let &t_SI.="\e[5 q" +let &t_EI.="\e[1 q" +let &t_te.="\e[0 q" +highlight LineNr cterm=inverse + " gvim if (has("gui_running")) highlight Normal guibg=black guifg=white + highlight LineNr gui=inverse set guioptions+=a set guioptions-=m "menu bar set guioptions-=T "toolbar @@ -104,11 +115,6 @@ if (has("gui_running")) endif endif -" block cursor in normal mode -let &t_ti.="\e[1 q" -let &t_SI.="\e[5 q" -let &t_EI.="\e[1 q" -let &t_te.="\e[0 q" " make "set makeprg=cmake\ --build\ .