Skip to content

Commit 9055722

Browse files
committed
remove unused bundles, options; switch back to usual status line
1 parent d2668cd commit 9055722

File tree

1 file changed

+17
-68
lines changed

1 file changed

+17
-68
lines changed

vimrc

Lines changed: 17 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -4,59 +4,34 @@ filetype off
44

55
set rtp+=~/.vim/bundle/vundle/
66
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/
107

118
source ~/.vim/funcs.vim
129

1310
Bundle 'JazzCore/vundle'
1411
Bundle 'JazzCore/ctrlp-cmatcher'
15-
Bundle 'JazzCore/ultisnips-snippets'
12+
Bundle 'JazzCore/UltiSnips-Snippets'
1613
Bundle 'JazzCore/mustang-vim'
1714
Bundle 'JazzCore/vim-hybrid'
1815
Bundle 'JazzCore/vim-python-syntax'
16+
Bundle 'JazzCore/vim-space'
1917
Bundle 'tpope/vim-fugitive'
2018
Bundle 'tpope/vim-surround'
2119
Bundle 'tpope/vim-endwise'
2220
Bundle 'tpope/vim-markdown'
2321
Bundle 'tpope/vim-unimpaired'
2422
Bundle 'tpope/vim-repeat'
23+
"Bundle 'tpope/vim-vinegar'
2524
" this one sets shiftwidth and tabstop automatically
2625
Bundle 'tpope/vim-sleuth'
27-
Bundle 'godlygeek/tabular'
2826
Bundle 'Valloric/YouCompleteMe'
2927
Bundle 'scrooloose/nerdcommenter'
30-
Bundle 'Lokaltog/vim-easymotion'
31-
Bundle 'majutsushi/tagbar'
3228
Bundle 'kien/ctrlp.vim'
3329
Bundle 'tacahiroy/ctrlp-funky'
34-
Bundle 'mileszs/ack.vim'
30+
"Bundle 'mileszs/ack.vim'
3531
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'
4232
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'
5433
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'
6035

6136
filetype on " Enable filetype detection
6237
filetype indent on " Enable filetype-specific indenting
@@ -125,7 +100,7 @@ set shiftwidth=4 " number of spaces to use for a
125100
set foldlevel=100 " Don't autofold anything (but I can still fold manually)
126101
set foldopen=block,hor,mark,percent,quickfix,tag " what movements open folds
127102

128-
set shortmess+=filmnrxoOtT " Abbrev. of messages (avoids 'hit enter')
103+
set shortmess+=filmnrxoOtTc " Abbrev. of messages (avoids 'hit enter'), disable completion messages
129104

130105
"colorscheme mustang
131106
colorscheme hybrid
@@ -189,6 +164,16 @@ endif
189164
" root.
190165
set tags=./tags;/
191166

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+
192177
" tell VIM to always put a status line in, even if there is only one window
193178
set laststatus=2
194179

@@ -277,7 +262,7 @@ noremap <F8> :call g:List_toggle()<CR>
277262
noremap! <F8> <Esc>:call g:List_toggle()<CR>a
278263
279264
" ==================== CtrlP ====================
280-
" funty adds functions definitions mode to CtrlP
265+
" funky adds functions definitions mode to CtrlP
281266
let g:ctrlp_extensions = ['tag', 'funky']
282267
let g:ctrlp_custom_ignore = {
283268
\ 'dir': '\.git$\|\.hg$\|\.svn$',
@@ -292,26 +277,12 @@ let g:ctrlp_user_command = {
292277

293278
nnoremap <C-l> :CtrlPMRUFiles<CR>
294279
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-
305280
" ==================== TagBar ====================
306281
" toggle Tagbar display
307282
map <F4> :TagbarToggle<CR>
308283
" autofocus on Tagbar open
309284
let g:tagbar_autofocus = 1
310285

311-
" ==================== TaskList ====================
312-
" show pending tasks list
313-
map <F3> :TaskList<CR>
314-
315286
" ==================== Fugitive ====================
316287
nnoremap <silent> <leader>gs :Gstatus<CR>
317288
nnoremap <silent> <leader>gd :Gdiff<CR>
@@ -324,18 +295,6 @@ nnoremap <silent> <leader>gp :Git push<CR>
324295
let g:session_autosave = 1
325296
let g:session_autoload = 1
326297

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-
339298
" ==================== Ack.vim ====================
340299
" Make ack.vim use Ag (silver searcher ) instead of ack
341300
let g:ackprg = 'ag --nogroup --nocolor --column'
@@ -356,16 +315,6 @@ let g:ycm_add_preview_to_completeopt = 0
356315
let g:ycm_complete_in_comments_and_strings = 1
357316
let g:ycm_collect_identifiers_from_comments_and_strings = 1
358317

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-
369318
" ==================== EasyMotion ====================
370319
" maps: <leader> and f,F,e,E,w,W,ge,gE,j,k,n,N,t,T,b,B
371320
let g:EasyMotion_leader_key="<Leader>"

0 commit comments

Comments
 (0)