-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
94 lines (73 loc) · 1.99 KB
/
.vimrc
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
94
" UTF-8 als Default-Encoding
set enc=utf-8
" Load pathogen
execute pathogen#infect()
" Airline
let g:airline_powerline_fonts = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.linenr = 'Ξ'
let g:airline_symbols.whitespace = 'Ξ'
set ttimeoutlen=10
" Automatische Einrückung (Globale Konfiguration)
set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
set smarttab
set tabstop=4
set softtabstop=0 noexpandtab
set shiftwidth=4
set shiftround
set showmatch
set backspace=indent,eol,start
set autoindent
set copyindent
" Ein Tab entspricht vier Leerzeichen (wie in PEP 8 definiert)
" Dies aber nur für python, damit es nicht mit anderen (ruby, c, Makefiles) kollidiert
autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4 omnifunc=pythoncomplete#Complete
set list
set listchars=tab:>.,trail:.,extends:#,nbsp:.
autocmd filetype html,xml set listchars-=tab:>.
" HTML
autocmd FileType html setlocal shiftwidth=2 tabstop=2
" More syntax highlighting.
let python_highlight_all = 1
" Start python on F5
autocmd FileType python map <F5> :w<CR>:!python "%"<CR>
syntax on
set number
set nocompatible
set hidden
"Display long lines on multiple lines
"set nowrap
set ignorecase
set smartcase
set hlsearch
set incsearch
" update shortcuts
map <F2> :NERDTreeToggle<CR>
nnoremap <silent> <F3> :!clear;python %<CR>
nnoremap <silent> <F9> :!pylint %<CR>
" tabbing
tab all
map <Tab> :tabn<cr>
map <S-Tab> :tabp<cr>
" smart tabbing
let g:airline#extensions#tabline#enabled = 1
" enable solarized font
"set background=dark
"let g:solarized_visibility = "high"
"let g:solarized_contrast = "high"
"colorscheme solarized
" disable arrow keys
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
filetype plugin indent on
let @i="import ipdb; ipdb.set_trace()"
" vimwiki
let wiki_1 = {}
let wiki_1.path = '~/.vimwiki/privat/'
let wiki_2 = {}
let wiki_2.path = '~/.vimwiki/resmio/'
let g:vimwiki_list = [wiki_1, wiki_2]