122 lines
2.5 KiB
VimL
122 lines
2.5 KiB
VimL
" Load plugins
|
|
execute pathogen#infect()
|
|
|
|
" Enable full color support
|
|
set t_Co=256
|
|
set background=dark
|
|
|
|
" Vim Modus statt Vi Modus verwenden
|
|
set nocompatible
|
|
|
|
" Make backspace work like most other apps
|
|
set backspace=2
|
|
|
|
" Sets how many lines of history VIM has to remember
|
|
set history=1000
|
|
|
|
" Enable filetype plugins
|
|
filetype plugin on
|
|
filetype indent on
|
|
|
|
" make backspace work like most other apps
|
|
set backspace=2
|
|
|
|
" automatisches Indenting aktivieren
|
|
set ai
|
|
|
|
" Smart Indenting aktivieren
|
|
set si
|
|
|
|
" Open new splits horizontally
|
|
set splitright
|
|
|
|
" Set to auto read when a file is changed from the outside
|
|
set autoread
|
|
|
|
" Always show current position
|
|
set ruler
|
|
set cursorline
|
|
"set colorcolumn=80
|
|
|
|
" Enable line numbers
|
|
set number
|
|
|
|
" Ignore case when searching
|
|
set ignorecase
|
|
|
|
" When searching try to be smart about cases
|
|
set smartcase
|
|
|
|
" Highlight search results
|
|
set hlsearch
|
|
|
|
" Makes search act like search in modern browsers
|
|
set incsearch
|
|
|
|
" For regular expressions turn magic on
|
|
set magic
|
|
|
|
" Show matching brackets when text indicator is over them
|
|
set showmatch
|
|
|
|
" How many tenths of a second to blink when matching brackets
|
|
set mat=4
|
|
|
|
" Setup tab completion
|
|
set wildmode=list:longest,full
|
|
set wildmenu
|
|
|
|
" Enable syntax highlighting
|
|
syntax enable
|
|
|
|
" Set utf8 as standard encoding and en_US as the standard language
|
|
set encoding=utf8
|
|
|
|
" Use Unix as the standard file type
|
|
set ffs=unix,dos,mac
|
|
|
|
" Enable mouse support in all modi
|
|
set mouse=a
|
|
|
|
set shell=/bin/bash
|
|
|
|
set updatetime=500
|
|
|
|
" Syntastic settings
|
|
let g:syntastic_error_symbol="✗"
|
|
let g:syntastic_warning_symbol="⚠"
|
|
let g:syntastic_check_on_open=1
|
|
let g:syntastic_c_checkers=['make','gcc']
|
|
|
|
" Airline
|
|
set laststatus=2
|
|
let g:airline_powerline_fonts=1
|
|
"let g:airline_theme="luna"
|
|
|
|
let g:quickfixsigns#marks#buffer=split('abcdefghijklmnopqrstuvwxyz', '\zs')
|
|
|
|
let g:neocomplete#enable_at_startup=1
|
|
let g:neocomplete#sources#tags#cache_limit_size=40000000
|
|
|
|
" Trigger configuration.
|
|
let g:UltiSnipsExpandTrigger="<tab>"
|
|
let g:UltiSnipsJumpForwardTrigger="<c-b>"
|
|
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
|
|
|
|
" If you want :UltiSnipsEdit to split your window.
|
|
let g:UltiSnipsEditSplit="vertical"
|
|
let g:UltiSnipsSnippetsDir="~/.homesick/repos/dotfiles/snippets/"
|
|
|
|
|
|
if !exists('g:neocomplete#sources#omni#input_patterns')
|
|
let g:neocomplete#sources#omni#input_patterns={}
|
|
endif
|
|
let g:neocomplete#sources#omni#input_patterns.tex='\v\\\a*(ref|cite)\a*([^]]*\])?\{([^}]*,)*[^}]*'
|
|
|
|
" For conceal markers.
|
|
if has('conceal')
|
|
set conceallevel=2 concealcursor=nv
|
|
endif
|
|
|
|
au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
|
|
|