" 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
set smarttab
set breakindent showbreak=\ +
set linebreak
+set shiftround
" search
set incsearch
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
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
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\ .