-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
91 lines (77 loc) · 2.34 KB
/
.vimrc
File metadata and controls
91 lines (77 loc) · 2.34 KB
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
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.config/vimrc/bundle/Vundle.vim,~/.config/vimrc
set rtp+=~/.config/vim
set rtp+=~/.config/vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'https://github.com/scrooloose/nerdtree'
Plugin 'ctrlp.vim'
Plugin 'bufexplorer.zip'
Plugin 'EasyMotion'
Plugin 'tagbar'
Plugin 'mhinz/vim-signify'
Plugin 'vim-airline/vim-airline'
Plugin 'junegunn/vim-easy-align'
Plugin 'racer-rust/vim-racer'
Plugin 'rust-lang/rust.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
"---------------------------------------------------------------
"color smyck
"color desert
color moriarty
set gfn=Menlo\ Regular:h15
"set gfn=Droid\ Sans\ Mono\ 12
"set gfn=Monospace\ 10
set tabstop=4
set shiftwidth=4
set expandtab
set laststatus=2
set number
"set relativenumber
set incsearch
set sidescroll=8
"set nowrap
set breakindent "line wrap with indentation
set breakindentopt=min:20,shift:4,sbr
set sbr=>>>\
set cursorline "highlight current line
set hlsearch
set hidden "Change buffer despite modified buffer
set exrc "use additional local .vimrc file
"set mouse=a
syntax on
imap jk <Esc>
let mapleader=" "
let g:signify_vcs_list = [ 'svn', 'git' ]
" <Space>-n Relative numbering ein/aus
nnoremap <Leader>n :call NumberToggle()<cr>
" <Space>-t Nerdtree ein/aus
nnoremap <Leader>t :NERDTreeToggle<cr>
" <Space>-b BufExplorer
nnoremap <Leader>e :BufExplorer<cr>
" <Space>-c Tagbar
nnoremap <Leader>c :TagbarOpenAutoClose<cr>
" Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
" <Space>-w, b, f, F: Easymotion Word jumps, find jumps
"let g:EasyMotion_leader_key = '<Leader>'
" relative numbering on/off
function! NumberToggle()
if(&relativenumber == 1)
set norelativenumber
else
set relativenumber
endif
endfunc
" relative numbering automatisch im Command Modus
"autocmd InsertEnter * :set norelativenumber
"autocmd InsertLeave * :set relativenumber