-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
96 lines (85 loc) · 3.05 KB
/
.vimrc
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
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" My plugins
" *****************************************************************************
Plugin 'gmarik/Vundle.vim'
" A tree explorer plugin for vim
Bundle 'scrooloose/nerdtree'
" Vim Git runtime files
Bundle 'tpope/vim-git'
" A plugin of NERDTree showing git status flags.
Bundle 'Xuyuanp/nerdtree-git-plugin'
" A Git wrapper
Bundle 'tpope/vim-fugitive'
" The ultimate vim statusline utility. DEPRECATED in favor of Lokaltog/powerline
Bundle 'Lokaltog/vim-powerline'
" Syntax checking hacks for vim
Bundle 'vim-syntastic/syntastic'
" A code-completion engine for Vim
Bundle 'Valloric/YouCompleteMe'
" Vim plugin that displays tags in a window, ordered by scope
Bundle 'majutsushi/tagbar'
" precision colorscheme for the vim text editor
Bundle 'altercation/vim-colors-solarized'
" Fuzzy file, buffer, mru, tag, etc finder
Bundle 'kien/ctrlp.vim'
" Hexo vim plugin
Bundle 'hiphopcoders/hexo.vim'
call vundle#end()
filetype indent plugin on
" *****************************************************************************
" My plugins configurations
" *****************************************************************************
" Plugin [NerdTree]'s configurations
nmap <F5> :NERDTreeToggle<cr>
map <C-n> :NERDTreeToggle<CR>
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
" Plugin [nerdtree-git-plugin]'s configurations
let g:NERDTreeIndicatorMapCustom = {
\ "Modified" : "✹",
\ "Staged" : "✚",
\ "Untracked" : "✭",
\ "Renamed" : "➜",
\ "Unmerged" : "═",
\ "Deleted" : "✖",
\ "Dirty" : "✗",
\ "Clean" : "✔︎",
\ 'Ignored' : '☒',
\ "Unknown" : "?"
\ }
" Plunin [syntastic]'s configurations
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" Plugin [tagbar]'s configurations
nmap <F8> :TagbarToggle<CR>
" Plugin [vim-powerline]'s configurations
let g:Powerline_symbols = 'fancy'
set laststatus=2 " Always show the statusline
set encoding=utf-8 " Necessary to show Unicode glyphs
set t_Co=256
let g:Powerline_stl_path_style = 'full'
" let g:Powerline_theme = 'solarized256'
" set nocompatible " Disable vi-compatibility
" set fillchars+=stl:\ ,stlnc:\
" let g:Powerline_symbols_override = {
" \ 'BRANCH': [0x2213],
" \ 'LINE': 'L',
" \ }
" Insert the charcode segment after the filetype segment
" call Pl#Theme#InsertSegment('charcode', 'after', 'filetype')
" Replace the scrollpercent segment with the charcode segment
" call Pl#Theme#ReplaceSegment('scrollpercent', 'fileinfo')
" Plugin [vim-colors-solarized]'s configurations
syntax enable
set background=dark
colorscheme solarized
" *****************************************************************************