dotfiles/.vimrc

110 lines
2.2 KiB
VimL

" Load plugins
execute pathogen#infect()
" Enable full color support
set t_Co=256
colorscheme pride
" Vim Modus statt Vi Modus verwenden
set nocompatible
" Sets how many lines of history VIM has to remember
set history=1000
" Enable filetype plugins
filetype plugin on
filetype indent on
" 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 tabstop=4
set shell=/bin/bash
" 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:neocomplete#enable_at_startup=1
let g:neocomplete#sources#tags#cache_limit_size=4000000
let g:neosnippet#snippets_directory=['~/.vim/bundle/Snippets/snippets']
" Plugin key-mappings.
"imap <C-k> <Plug>(neosnippet_expand_or_jump)
"smap <C-k> <Plug>(neosnippet_expand_or_jump)
"xmap <C-k> <Plug>(neosnippet_expand_target)
" SuperTab like snippets behavior.
imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: pumvisible() ? "\<C-n>" : "\<TAB>"
smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: "\<TAB>"
" For conceal markers.
if has('conceal')
set conceallevel=2 concealcursor=niv
endif