summaryrefslogtreecommitdiff
path: root/vim/.vimrc
blob: 46b47035cf0483073e0aa89c152fa2e82f161f0b (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()"

" Manage Plugins
Plugin 'gmarik/Vundle.vim'
" Autocompletion
Plugin 'Valloric/YouCompleteMe'
" Displays Tagbar for Code
Plugin 'majutsushi/tagbar'
" Golang
Plugin 'fatih/vim-go'

Plugin 'mattn/emmet-vim'
" Filebrowser
Plugin 'scrooloose/nerdtree'
" Open new files in a new tab
Plugin 'jistr/vim-nerdtree-tabs'
" Better handling for buffers (opened Files)
Plugin 'vim-scripts/minibufexpl.vim'
" Displays colors in CSS files
Plugin 'ap/vim-css-color'
" More colorschemes available
Plugin 'flazz/vim-colorschemes'
" Autocompletion for HTML5
Plugin 'othree/html5.vim'
" Better syntax for JavaScript
Plugin 'pangloss/vim-javascript'
" PHP autocompletion
Plugin 'shawncplus/phpcomplete.vim'
" Git integration
Plugin 'tpope/vim-fugitive'
" Dim inactive Windows
Plugin 'blueyed/vim-diminactive'
" Displays cursor line
let g:cursorcross_no_map_BS=1 "Stop annoying message on startup
Plugin 'mtth/cursorcross.vim'
" Zoom in windows
Plugin 'vim-scripts/ZoomWin'
" Debugger
Plugin 'joonty/vdebug'

call vundle#end()            " required
filetype plugin indent on    " required

set number
set ruler
set ignorecase
set hlsearch		"highlighted gesuchte wörter
set incsearch
set magic 
set showmatch
set autoindent		"auto einrücken
set scrolloff=4		"scrollt schon 4 Zeilen vor Ende
set matchpairs=(:),{:},[:],<:>
set t_Co=256
let g:rehash256 = 1
colorscheme molokai

syntax enable
set encoding=utf8

"map! jj <ESC>

command W w
command Q q
command WQ wq
command Wq wq

"cycle through tabs
"map <gn> : tabn<CR>
"map <gt> : tabp<CR>

" start NERDtree on startup
autocmd vimenter * NERDTree
" close vim when the only open window is NERDtree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" autofocus on opened file instead of nerdtree
autocmd VimEnter * wincmd p
" Toggle NERDtree
map <C-n> :NERDTreeToggle<CR>

" Toggle Tarbar with F9
nnoremap <silent> <F9> :TagbarToggle<CR>
" start Tagbar on vim start 
" autocmd vimenter * Tagbar
" autocmd VimEnter * wincmd p

" Must be at the end
set background=dark