一个自用的.vimrc模板

分享一个自用的.vimrc模板,需要配合Vundle使用。

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
set nocompatible
filetype off

" set up the runtime path
set rtp+=~/.vim/bundle/Vundle.vim

" show the row number
set nu

" allocate the width of tab as 4 space
set ts=4

" highlight the cursor line
set cursorline

" apply the scheme
syntax on
set t_Co=256
"colorscheme skeletor
"colorscheme molokai
"colorscheme jellybeans
colorscheme monokai-bold

" this is where plugin being used
call vundle#begin()

" Vundle itself~
Plugin 'VundleVim/Vundle.vim'

" Color scheme
Plugin 'flazz/vim-colorschemes'

" the bracket plug
Plugin 'frazrepo/vim-rainbow'
let g:rainbow_active = 1

" told you what type of file you r dealing with and what mode you r under
Plugin 'itchyny/lightline.vim'
" close the original mode display and apply the new one
set noshowmode
set laststatus=2

" nerd tree on side
Plugin 'scrooloose/nerdtree'
map <C-d> :NERDTreeToggle<CR>

" support for the markdown
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'

" auto pair
Plugin 'Raimondi/delimitMate'

" neo complete
Plugin 'Shougo/neocomplcache'


" easy tags

Plugin 'majutsushi/tagbar'
Plugin 'xolox/vim-misc'
Plugin 'xolox/vim-easytags'

" tagbar
Plugin 'jszakmeister/markdown2ctags'
" Add support for markdown files in tagbar.
let g:tagbar_type_markdown = {
\ 'ctagstype': 'markdown',
\ 'ctagsbin' : '/root/.vim/bundle/markdown2ctags/markdown2ctags.py',
\ 'ctagsargs' : '-f - --sort=yes --sro=»',
\ 'kinds' : [
\ 's:sections',
\ 'i:images'
\ ],
\ 'sro' : '»',
\ 'kind2scope' : {
\ 's' : 'section',
\ },
\ 'sort': 0,
\ }
map <F4> :TagbarToggle<CR>

\let g:neocomplcache_enable_at_startup = 1
se mouse+=a
call vundle#end()
filetype plugin indent on