2016-04-02 17:43:26 +00:00
|
|
|
set autoread " Automatically read a file that has changed on disk
|
|
|
|
set backspace=indent,eol,start " Allow backspacing over everything in insert mode
|
|
|
|
set cursorline " highlight current line
|
|
|
|
set grepprg=ag " use ag for grepping
|
|
|
|
set hidden " allows for switching buffers without writing
|
|
|
|
set lazyredraw " Don't redraw while executing macros
|
|
|
|
set mouse=a " mouse for scrolling
|
|
|
|
set nobackup " no backups
|
|
|
|
set noerrorbells " don't beep
|
|
|
|
set noesckeys " no delay for escaping
|
|
|
|
set noshowmode " dont show active mode
|
|
|
|
set noswapfile " no swp-files
|
|
|
|
set nowrap " dont wrap lines around
|
|
|
|
set nowritebackup " no stupid backup files
|
|
|
|
set pastetoggle=<F2> " toggle paste-mode for c&p with F2
|
|
|
|
set relativenumber " relative line numbers are mothereffin awesome -- see how far your commands will go
|
|
|
|
set ruler " show where you are in the document
|
|
|
|
set scrolljump=5 " Lines to scroll when cursor leaves screen
|
|
|
|
set scrolloff=3 " Minimum lines to keep above and below cursor
|
|
|
|
set showcmd " show me what im doing. helps alot
|
|
|
|
set sidescroll=10 " smoother side-scrolling
|
|
|
|
set sidescrolloff=5 " jump by 5 when scrolling sideways
|
|
|
|
set timeout ttimeoutlen=100 " get rid of the delay when pressing O (for example)
|
|
|
|
set virtualedit=all " every mode active from v V to StrgV
|
|
|
|
set visualbell " don't flicker
|
|
|
|
set complete-=i " dont complete from files
|
|
|
|
set nrformats-=octal " nobody uses octal anyway
|
|
|
|
set display+=lastline " shorten long lastlines
|
|
|
|
set formatoptions+=j " Delete comment character when joining commented lines
|
2016-12-26 08:36:23 +00:00
|
|
|
set ignorecase
|
|
|
|
set smartcase
|
|
|
|
set hlsearch
|
|
|
|
set showmatch
|
|
|
|
set wrapscan
|
|
|
|
set wildmode=list:longest,list:full
|
|
|
|
set wildmenu
|
|
|
|
set foldignore=
|
|
|
|
set foldmethod=indent " indent folding
|
|
|
|
set foldnestmax=20 " max 20 levels of folding
|
|
|
|
set nofoldenable " dont fold by default - let me do it
|
|
|
|
set foldlevelstart=1 " deactivate folding on fileload
|
|
|
|
set fileformat=unix
|
|
|
|
set tabstop=2
|
|
|
|
set softtabstop=2
|
|
|
|
set shiftwidth=2
|
|
|
|
set shiftround
|
|
|
|
set smarttab
|
|
|
|
set expandtab
|
|
|
|
set autoindent
|
|
|
|
set list! " nice Whitespace chars
|
|
|
|
set listchars=extends:»,precedes:«,tab:▸\ ,trail:·
|
|
|
|
set fillchars=
|
|
|
|
set laststatus=2 " statusbar is 2 high
|
|
|
|
set cmdheight=2 " command window is 2 high
|
|
|
|
set cpoptions+=$ " Add a $ to the end of a selection
|
|
|
|
set cpoptions+=J " 2 spaces after a sentence for easier text manupulation
|
|
|
|
|
|
|
|
" hybrid color scheme
|
|
|
|
let g:hybrid_reduced_contrast = 0
|
|
|
|
let g:hybrid_custom_term_colors = 1
|
|
|
|
set background=dark
|
|
|
|
colorscheme hybrid
|
2016-04-02 17:43:26 +00:00
|
|
|
|
|
|
|
" deactivate syntax highlighting when diffing
|
|
|
|
if &diff
|
|
|
|
syntax off
|
|
|
|
endif
|