@@ -4,59 +4,34 @@ filetype off
4
4
5
5
set rtp += ~/.vim/bundle/vundle/
6
6
call vundle#rc ()
7
- " set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
8
- " set rtp+=D:/src/powerline/powerline/bindings/vim
9
- set rtp += ~/.vim/ycmtest/
10
7
11
8
source ~/.vim/funcs.vim
12
9
13
10
Bundle ' JazzCore/vundle'
14
11
Bundle ' JazzCore/ctrlp-cmatcher'
15
- Bundle ' JazzCore/ultisnips-snippets '
12
+ Bundle ' JazzCore/UltiSnips-Snippets '
16
13
Bundle ' JazzCore/mustang-vim'
17
14
Bundle ' JazzCore/vim-hybrid'
18
15
Bundle ' JazzCore/vim-python-syntax'
16
+ Bundle ' JazzCore/vim-space'
19
17
Bundle ' tpope/vim-fugitive'
20
18
Bundle ' tpope/vim-surround'
21
19
Bundle ' tpope/vim-endwise'
22
20
Bundle ' tpope/vim-markdown'
23
21
Bundle ' tpope/vim-unimpaired'
24
22
Bundle ' tpope/vim-repeat'
23
+ " Bundle 'tpope/vim-vinegar'
25
24
" this one sets shiftwidth and tabstop automatically
26
25
Bundle ' tpope/vim-sleuth'
27
- Bundle ' godlygeek/tabular'
28
26
Bundle ' Valloric/YouCompleteMe'
29
27
Bundle ' scrooloose/nerdcommenter'
30
- Bundle ' Lokaltog/vim-easymotion'
31
- Bundle ' majutsushi/tagbar'
32
28
Bundle ' kien/ctrlp.vim'
33
29
Bundle ' tacahiroy/ctrlp-funky'
34
- Bundle ' mileszs/ack.vim'
30
+ " Bundle 'mileszs/ack.vim'
35
31
Bundle ' Raimondi/delimitMate'
36
- Bundle ' telamon/vim-color-github'
37
- Bundle ' alfredodeza/pytest.vim'
38
- Bundle ' mbbill/undotree'
39
- Bundle ' Spaceghost/vim-matchit'
40
- Bundle ' gregsexton/gitv'
41
- Bundle ' xolox/vim-session'
42
32
Bundle " myusuf3/numbers.vim"
43
- Bundle " klen/python-mode"
44
- Bundle ' Decho'
45
- Bundle ' bufexplorer.zip'
46
- " Check it
47
- Bundle ' michaeljsmith/vim-indent-object'
48
- " Bundle 'sjl/clam.vim'
49
- Bundle ' maxbrunsfeld/vim-yankstack'
50
- Bundle ' scrooloose/nerdtree'
51
- Bundle ' terryma/vim-expand-region'
52
- Bundle ' spiiph/vim-space'
53
- Bundle ' airblade/vim-gitgutter'
54
33
Bundle ' SirVer/ultisnips'
55
- " Markup
56
- Bundle ' matthias-guenther/hammer.vim'
57
- " Bundle 'suan/vim-instant-markdown'
58
- Bundle ' bling/vim-airline'
59
-
34
+ Bundle ' maxbrunsfeld/vim-yankstack'
60
35
61
36
filetype on " Enable filetype detection
62
37
filetype indent on " Enable filetype-specific indenting
@@ -125,7 +100,7 @@ set shiftwidth=4 " number of spaces to use for a
125
100
set foldlevel = 100 " Don't autofold anything (but I can still fold manually)
126
101
set foldopen = block,hor ,mark ,percent,quickfix,tag " what movements open folds
127
102
128
- set shortmess += filmnrxoOtT " Abbrev. of messages (avoids 'hit enter')
103
+ set shortmess += filmnrxoOtTc " Abbrev. of messages (avoids 'hit enter'), disable completion messages
129
104
130
105
" colorscheme mustang
131
106
colorscheme hybrid
@@ -189,6 +164,16 @@ endif
189
164
" root.
190
165
set tags = ./tags;/
191
166
167
+ " Set the status line
168
+ set statusline = % <% F " File path
169
+ set statusline += \ % 2 *% {&ro ?' RO' :' ' }%*% 4 *% {&mod ?' +' :' ' }% <%* " RO and modification flags. %2 - red, %4 - green
170
+ set statusline += % 3 * \ % {matchstr (fugitive#statusline (),' (\\zs.*\\ze)' )}%* " Fugitive flag. %3 - orange
171
+ set statusline += % = \ % {&fileformat }\ \| " Remaining items are right-aligned. File format
172
+ set statusline += % {&fileencoding }\ \| " Encoding
173
+ set statusline += % {&filetype }\ \| " filetype
174
+ set statusline += % p %% \ \| " % of document
175
+ set statusline += % l: % c \ " Line num and col
176
+
192
177
" tell VIM to always put a status line in, even if there is only one window
193
178
set laststatus = 2
194
179
@@ -277,7 +262,7 @@ noremap <F8> :call g:List_toggle()<CR>
277
262
noremap ! <F8> <Esc> :call g:List_toggle()<CR> a
278
263
279
264
" ==================== CtrlP ====================
280
- " funty adds functions definitions mode to CtrlP
265
+ " funky adds functions definitions mode to CtrlP
281
266
let g: ctrlp_extensions = [' tag' , ' funky' ]
282
267
let g: ctrlp_custom_ignore = {
283
268
\ ' dir' : ' \.git$\|\.hg$\|\.svn$' ,
@@ -292,26 +277,12 @@ let g:ctrlp_user_command = {
292
277
293
278
nnoremap <C-l> :CtrlPMRUFiles<CR>
294
279
295
- " ==================== PyTest ====================
296
- " Execute the tests
297
- nmap <silent> <Leader> tf <Esc> :Pytest file<CR>
298
- nmap <silent> <Leader> tc <Esc> :Pytest class<CR>
299
- nmap <silent> <Leader> tm <Esc> :Pytest method<CR>
300
- " cycle through test errors
301
- nmap <silent> <Leader> tn <Esc> :Pytest next<CR>
302
- nmap <silent> <Leader> tp <Esc> :Pytest previous<CR>
303
- nmap <silent> <Leader> te <Esc> :Pytest error<CR>
304
-
305
280
" ==================== TagBar ====================
306
281
" toggle Tagbar display
307
282
map <F4> :TagbarToggle<CR>
308
283
" autofocus on Tagbar open
309
284
let g: tagbar_autofocus = 1
310
285
311
- " ==================== TaskList ====================
312
- " show pending tasks list
313
- map <F3> :TaskList<CR>
314
-
315
286
" ==================== Fugitive ====================
316
287
nnoremap <silent> <leader> gs :Gstatus<CR>
317
288
nnoremap <silent> <leader> gd :Gdiff<CR>
@@ -324,18 +295,6 @@ nnoremap <silent> <leader>gp :Git push<CR>
324
295
let g: session_autosave = 1
325
296
let g: session_autoload = 1
326
297
327
- " ==================== python-mode ====================
328
- let g: pymode_doc = 0
329
- let g: pymode_run = 0
330
- let g: pymode_lint = 0
331
- let g: pymode_lint_signs = 1
332
- " let g:pymode_lint_signs_always_visible = 1
333
- let g: pymode_lint_onfly = 1
334
- let g: pymode_lint_cwindow = 1
335
- let g: pymode_rope = 0
336
- let g: pymode_folding = 0
337
- let g: pymode_options = 0
338
-
339
298
" ==================== Ack.vim ====================
340
299
" Make ack.vim use Ag (silver searcher ) instead of ack
341
300
let g: ackprg = ' ag --nogroup --nocolor --column'
@@ -356,16 +315,6 @@ let g:ycm_add_preview_to_completeopt = 0
356
315
let g: ycm_complete_in_comments_and_strings = 1
357
316
let g: ycm_collect_identifiers_from_comments_and_strings = 1
358
317
359
- " ==================== NERDTree ====================
360
- map <F2> :NERDTreeToggle<CR>
361
-
362
- " ==================== Powerline ====================
363
- " let g:Powerline_symbols = 'unicode'
364
- let g: Powerline_symbols= " fancy"
365
-
366
- " ==================== Vim-Gitgutter ====================
367
- let g: gitgutter_on_bufenter = 0
368
-
369
318
" ==================== EasyMotion ====================
370
319
" maps: <leader> and f,F,e,E,w,W,ge,gE,j,k,n,N,t,T,b,B
371
320
let g: EasyMotion_leader_key= " <Leader>"
0 commit comments