-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
180 lines (144 loc) · 3.59 KB
/
Copy pathvimrc
File metadata and controls
180 lines (144 loc) · 3.59 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
"------------------------------------------------------------------------------
" .vimrc
" Author: Christoph 'qitta' Piechula
"------------------------------------------------------------------------------
"tell pathogen to load all the cute plugins
filetype off
call pathogen#infect()
"basic settings
filetype plugin indent on
set modelines=0
set autoindent
set smartindent
set nocompatible
set encoding=utf-8
syntax on
"font and sh cuteness :)
set t_Co=256
set cursorline
set guifont=PragmataPro\ 12
set background=dark
colorscheme obsidian
if has('gui_running')
colorscheme base16-monokai
endif
"option name default optional
"let g:solarized_termcolors= 256
"let g:solarized_termtrans = 0
"let g:solarized_degrade = 0
"let g:solarized_bold = 1
"let g:solarized_underline = 0
"let g:solarized_italic = 0
"let g:solarized_style = "dark"
"let g:solarized_contrast = "high"
"list invisible chars :)
set list
"set listchars=tab:▸\ ,eol:¬,extends:❯,precedes:❮
set listchars=tab:▸\ ,extends:❯,precedes:❮
set showbreak=↪
set backspace=indent,eol,start
"tabs an spaces
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
"gimme nerdy feeling
set guioptions-=T
set guioptions-=r
set guioptions-=l
set guioptions-=b
set guioptions-=L
set guioptions-=m
set guioptions-=e
set number
set ruler
set norelativenumber
"window management
au FocusLost * :silent! wall "save if focus lost
au VimResized * :wincmd = "also resize split windwos on resize
"make bar display some stuff
set showmode
set showcmd
"predator menu
set wildmenu
set wildmode=list:longest
set wildignore+=.hg,.git,.svn
set wildignore+=*.aux,*.out,*.toc
set wildignore+=*.jpg,*.bmp,*.gif,*.png,*.jpeg
set wildignore+=*.o,*.obj,*.exe,*.dll,*.manifest
set wildignore+=*.sw?
set wildignore+=*.pyc
set wildignore+=*.orig
"undo stuff
set undofile
set undoreload=1000
set undodir=~/.vim/tmp/undo//
set noswapfile
"searching
set ignorecase
set smartcase
set incsearch
set showmatch
set hlsearch
"misc
set nowrap
set textwidth=80
set colorcolumn=+1
set hidden
set ttyfast
set lazyredraw
set completeopt=longest,menuone,preview
let g:EasyMotion_leader_key = '<Leader>'
"makes vim terminal working more smoothly
set notimeout
set ttimeout
set ttimeoutlen=10
"use supertab for omnicomplete
let g:SuperTabDefaultCompletionType = "context"
"vim javascript stuff
let g:html_indent_inctags = "html,body,head,tbody"
let g:html_indent_script1 = "inc"
let g:html_indent_style1 = "inc"
"jj to run away :)
imap jj <Esc>
"window movement
nmap <silent> <C-k> :wincmd k<CR>
nmap <silent> <C-j> :wincmd j<CR>
nmap <silent> <C-h> :wincmd h<CR>
nmap <silent> <C-l> :wincmd l<CR>
"gundo settings
nnoremap <F5> :GundoToggle<CR>
set laststatus=2
set showtabline=2
"other stuff
set cm=blowfish
"buftabs setting
noremap <f1> :bprev<CR>
noremap <f2> :bnext<CR>
noremap <f3> :CommandT .<CR>
"python settings
augroup ft_python
au!
au FileType python setlocal omnifunc=pythoncomplete#Complete
augroup END
" Python mode
" " Enable python folding
let g:pymode_folding = 0
let g:pymode_lint_checker = "pep8,mccabe"
" gitgutter
let g:gitgutter_eager = 0
"Autosave when focus lost
:au FocusLost * silent! wa"
let g:multi_cursor_use_default_mapping=0
" Default mapping
let g:multi_cursor_next_key='<C-n>'
let g:multi_cursor_prev_key='<C-p>'
let g:multi_cursor_skip_key='<C-x>'
let g:multi_cursor_quit_key='<Esc>'"
set spelllang=de
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
"remove trailing spaces on save
autocmd BufWritePre * :%s/\s\+$//e
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif