git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
blob: 1bef5419b92515f94145763edb2cb273766708aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
" vim:syntax=vim
set nocompatible
set ruler
set showmode
set showmatch
set hlsearch
set undolevels=64
" who came up with the 'brilliant' idea that make mouse input relevant for vim
" inside a terminal AS DEFAULT?
set mouse=
set ttymouse=
set shiftwidth=0
set tabstop=4
set ignorecase
set autoindent
set copyindent
set noexpandtab
au BufReadPost *.inc set syntax=php " .inc will be considered PHP
autocmd FileType yaml set noexpandtab " force yaml to use single whitespaces

syntax on
filetype plugin on
set background=dark
" we'd like to use industry, but it sets the background to black so we
" cannot change this over here. f'k. ron is a good compromise.
colorscheme ron
hi Normal ctermbg=NONE guibg=NONE
hi Special ctermbg=NONE guibg=NONE
hi EndOfBuffer ctermbg=NONE guibg=NONE

set t_Co=256
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
let g:airline_powerline_fonts = 1
let g:airline_theme='molokai'

if !exists('g:airline_symbols')
  let g:airline_symbols = {}
endif
" unicode symbols
let g:airline_left_sep = 'Β»'
let g:airline_left_sep = 'β–Ά'
let g:airline_right_sep = 'Β«'
let g:airline_right_sep = 'β—€'
let g:airline_symbols.crypt = 'πŸ”’'
let g:airline_symbols.linenr = '☰'
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = '␀'
let g:airline_symbols.linenr = 'ΒΆ'
let g:airline_symbols.maxlinenr = ''
let g:airline_symbols.maxlinenr = '㏑'
let g:airline_symbols.branch = 'βŽ‡'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = 'βˆ₯'
let g:airline_symbols.spell = 'Ꞩ'
let g:airline_symbols.notexists = 'Ι†'
let g:airline_symbols.whitespace = 'Ξ'

let airline#extensions#syntastic#enabled = 1
let g:syntastic_python_checkers = ['pylint']
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_error_symbol = "βœ—"
let g:syntastic_warning_symbol = "⚠"
span class="w"> "^[Ff]edora" /etc/redhat-release >/dev/null 2>&1 && OSNAME="fedora" grep -P "^[Cc]ent[Oo][Ss]" /etc/redhat-release >/dev/null 2>&1 && OSNAME="centos" [ -z "$OSNAME" ]&&OSNAME="obsolete" elif [ -r "/etc/SuSE-release" ];then OSNAME="oldsuse" elif [ -r "/etc/release" ];then head -n1 /etc/release 2> /dev/null|grep -i solaris > /dev/null && OSNAME="solaris" [ -z "$OSNAME" ]&&OSNAME="obsolete" else [ "$(oslevel -s >/dev/null 2>&1|wc -l)" -gt 0 ]&&OSNAME="aix" [ -z "$OSNAME" ]&&OSNAME="obsolete" fi declare -x GPG_TTY GPG_TTY="$(tty)" export e='2.718281828459045' if command -v bc >/dev/null;then declare -x pi pi="$(echo "scale=64; 4*a(1)" | bc -l)" fi # ----- GIT ----- # # git on the command line export GIT_PS1_SHOWDIRTYSTATE=1 export GIT_PS1_SHOWSTASHSTATE=1 export GIT_PS1_SHOWUNTRACKEDFILES=1 # ----- LESS FOR EVERYTHING ----- # if command -v less >/dev/null;then # coloured mapages export LESS_TERMCAP_mb=$'\E[01;31m' export LESS_TERMCAP_md=$'\E[01;31m' export LESS_TERMCAP_me=$'\E[0m' export LESS_TERMCAP_se=$'\E[0m' export LESS_TERMCAP_so=$'\E[01;44;33m' export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;32m' # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)" export SYSTEMD_PAGER="less" export LESSANSIENDCHARS="m" export LESSANSIMIDCHARS="0123456789:;[?!\"'#%()*+ " fi # ----- MISC ----- # # nopaste export NOPASTE_SERVICES='pastebin nopaste' export NOPASTE_NICK='CHANGEME' # libvirt export LIBVIRT_DEFAULT_URI="qemu:///system" # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi if [ -r "vars.bash.local" ];then source vars.bash.local fi # SSH environment file #!/usr/bin/env bash # vim:syntax=sh #if echo "${SSHAGH[@]}" | grep -F --word-regexp "$(hostname -f)" > /dev/null;then export SSHENVFILE="${HOME}/.ssh/sshenv" #fi