blob: d0d714ec6923f027e476ff6ddfd7e2950ac996d4 (
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
|
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()"
Plugin 'gmarik/Vundle.vim'
Plugin 'fatih/vim-go'
Plugin 'mattn/emmet-vim'
Plugin 'scrooloose/nerdtree'
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 background=dark
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>
|