Skip to content

Commit 1f4d055

Browse files
committed
refine VIM plugins. now use Vundle.
1 parent d883c67 commit 1f4d055

File tree

15 files changed

+54
-1633
lines changed

15 files changed

+54
-1633
lines changed

.gitmodules

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
[submodule ".vim/bundle/nerdtree"]
2-
path = .vim/bundle/nerdtree
3-
url = https://github.com/scrooloose/nerdtree
4-
[submodule ".vim/bundle/powerline"]
5-
path = .vim/bundle/powerline
6-
url = https://github.com/Lokaltog/powerline
7-
[submodule ".vim/bundle/ctrlp.vim"]
8-
path = .vim/bundle/ctrlp.vim
9-
url = https://github.com/kien/ctrlp.vim
10-
[submodule ".vim/bundle/vim-airline"]
11-
path = .vim/bundle/vim-airline
12-
url = https://github.com/bling/vim-airline.git
13-
[submodule ".vim/bundle/vim-bufferline"]
14-
path = .vim/bundle/vim-bufferline
15-
url = https://github.com/bling/vim-bufferline.git
16-
[submodule ".vim/bundle/syntastic"]
17-
path = .vim/bundle/syntastic
18-
url = https://github.com/scrooloose/syntastic.git
19-
[submodule ".vim/bundle/YouCompleteMe"]
20-
path = .vim/bundle/YouCompleteMe
21-
url = https://github.com/Valloric/YouCompleteMe.git
22-
[submodule ".vim/bundle/vim-go"]
23-
path = .vim/bundle/vim-go
24-
url = https://github.com/fatih/vim-go.git
1+
[submodule ".vim/bundle/Vundle.vim"]
2+
path = .vim/bundle/Vundle.vim
3+
url = https://github.com/VundleVim/Vundle.vim

.vim/.vimrc

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,45 @@
1-
set background=light
2-
colorscheme darkblue
3-
set fileencodings=utf-8-bom,ucs-bom,utf-8,cp936,gbk,gb18030,ucs,big5
1+
set nocompatible " be iMproved, required
2+
filetype on " required for compatibility with Mac OS X, See issue #167
3+
filetype off " required
4+
5+
" set the runtime path to include Vundle and initialize
6+
set rtp+=~/.vim/bundle/Vundle.vim
7+
call vundle#begin()
8+
" alternatively, pass a path where Vundle should install plugins
9+
"call vundle#begin('~/some/path/here')
10+
11+
" let Vundle manage Vundle, required
12+
Plugin 'VundleVim/Vundle.vim'
13+
14+
Plugin 'Valloric/YouCompleteMe'
15+
Plugin 'vim-airline/vim-airline'
16+
Plugin 'vim-airline/vim-airline-themes'
17+
Plugin 'kien/ctrlp.vim'
18+
Plugin 'edkolev/tmuxline.vim'
19+
Plugin 'scrooloose/nerdtree'
20+
Plugin 'scrooloose/syntastic'
21+
Plugin 'scrooloose/nerdcommenter'
22+
Plugin 'plasticboy/vim-markdown'
23+
Plugin 'Yggdroot/indentLine'
24+
" All of your Plugins must be added before the following line
25+
call vundle#end() " required
26+
filetype plugin indent on " required
27+
" To ignore plugin indent changes, instead use:
28+
"filetype plugin on
29+
"
30+
" Brief help
31+
" :PluginList - lists configured plugins
32+
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
33+
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
34+
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
35+
"
36+
" see :h vundle for more details or wiki for FAQ
37+
" Put your non-Plugin stuff after this line
438

5-
set nocompatible
639
set ruler
740
set backspace=indent,eol,start
8-
set softtabstop=4
9-
set shiftwidth=4
10-
set tabstop=4
1141
set showmatch
12-
set incsearch
13-
set hlsearch
42+
set hlsearch incsearch smartcase ignorecase
1443
set showcmd
1544

1645
set mouse=nicr mousemodel=extend
@@ -22,20 +51,17 @@ set smartindent
2251
set autoindent
2352
set noexpandtab
2453

54+
set list listchars=tab:→\ ,trail:·
55+
2556
"force 256 color
2657
set t_Co=256
2758

28-
"pathogen
29-
call pathogen#infect()
30-
31-
"use airline instead
32-
"set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
33-
3459
syntax on
3560

3661
filetype plugin indent on
3762

3863
map <F2> <Esc>:1,$!xmllint --format -<CR>
64+
cmap w!! w !sudo tee % > /dev/null
3965
4066
if ! has('gui_running')
4167
set ttimeoutlen=10
@@ -70,13 +96,14 @@ autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTree
7096
"Ctrl-P
7197
let g:ctrlp_map = '<c-p>'
7298
let g:ctrlp_cmd = 'CtrlP'
73-
74-
"bufferline
75-
let g:bufferline_echo=0
76-
set statusline=%{bufferline#generate_string()}
99+
let g:ctrlp_working_path_mode = 'ra'
77100

78101
"airline
102+
let g:airline_powerline_fonts = 0
79103
let g:airline_theme='badwolf'
80104

105+
"tmuxline
106+
let g:tmuxline_powerline_separators = 0
107+
81108
"YCM
82109
let g:ycm_confirm_extra_conf = 0

0 commit comments

Comments
 (0)