先將Vundle抓下來
1
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
下面內容複製到~/.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
97
98
99
100
101
102
103
104
105
106
107
108
109set nocompatible
filetype off
" NERDTree Key
map <F1> :NERDTree <CR>
let g:NERDTreeWinPos = 'right'
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Let Vundle manage itself
Plugin 'VundleVim/Vundle.vim'
" Better file browser
Plugin 'scrooloose/nerdtree'
" Code commenter
Plugin 'scrooloose/nerdcommenter'
" Surround
Plugin 'tpope/vim-surround'
" Autoclose
Plugin 'Townk/vim-autoclose'
" Airline
Plugin 'bling/vim-airline'
" Terminal Vim with 256 colors colorscheme
Plugin 'fisadev/fisa-vim-colorscheme'
" Git integration
Plugin 'motemen/git-vim'
" Plugin 'Valloric/YouCompleteMe'
" " SnipMate
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'garbas/vim-snipmate'
Plugin 'honza/vim-snippets'
" markdown
Plugin 'plasticboy/vim-markdown'
" "Python and other languages code checker
Plugin 'scrooloose/syntastic'
" Rust
Plugin 'rust-lang/rust.vim'
call vundle#end()
" NERDTree Key
map <F1> :NERDTree <CR>
let g:NERDTreeWinPos = 'right'
" NERDcommenter
let g:NERDSpaceDelims = 1
" Airline
set laststatus=2
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = '|'
let g:airline#extensions#tabline#right_sep = ' '
let g:airline#extensions#tabline#buffer_nr_show = 1
let g:airline_powerline_fonts = 1
" let g:airline_theme = 'luna'
let g:airline#extensions#whitespace#enabled = 0
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = '|'
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = '|'
let g:airline_symbols.linenr = '|'
let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py'
let g:ycm_confirm_extra_conf = 0
let g:ycm_key_list_select_completion=[]
let g:ycm_key_list_previous_completion=[]
" Disable markdown folding
let g:vim_markdown_folding_disabled = 1
" allow plugins by file type (required for plugins!)
filetype plugin on
filetype indent on
autocmd BufRead,BufNewFile *.ll set filetype=llvm
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set incsearch
set hlsearch
set backspace=2
set autoindent
set ruler
set showmode
set nu
set bg=dark
syntax on
set clipboard=unnamed
colorscheme default安裝Plugin
開啟vim
1
$ vim
執行安裝動作
1
:PluginInstall