1
1
set nocompatible " be iMproved, required
2
- filetype off " required
3
-
2
+ filetype off " required set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin()
4
3
set rtp += ~/.vim/bundle/Vundle.vim
5
4
call vundle#begin ()
6
-
7
5
Plugin ' iamcco/markdown-preview.vim'
8
6
Plugin ' gmarik/Vundle.vim'
9
7
Plugin ' fatih/vim-go'
@@ -15,7 +13,15 @@ Plugin 'flazz/vim-colorschemes'
15
13
Plugin ' kien/ctrlp.vim'
16
14
Plugin ' mileszs/ack.vim'
17
15
Plugin ' Raimondi/delimitMate'
18
-
16
+ Plugin ' ryanss/vim-hackernews'
17
+ Plugin ' jistr/vim-nerdtree-tabs'
18
+ Plugin ' dracula/vim'
19
+ Plugin ' tmhedberg/matchit'
20
+ Plugin ' godlygeek/tabular'
21
+ Plugin ' rust-lang/rust.vim'
22
+ Plugin ' racer-rust/vim-racer'
23
+ Plugin ' vim-scripts/OmniCppComplete'
24
+ Plugin ' vim-scripts/a.vim'
19
25
20
26
call vundle#end () " required
21
27
filetype plugin indent on " required
@@ -138,13 +144,14 @@ nmap <F8> :TagbarToggle<CR>
138
144
if has (" gui_running" )
139
145
set go = aAce " remove toolbar
140
146
" set guifont=Hack:h16
141
- set guifont = Hack:h18
147
+ set guifont = Hack\ 15
142
148
set showtabline = 1
143
149
set lines = 999 columns = 999
144
150
" set cursorcolumn
145
151
set guioptions = e " instead of clearing this, set it to only `e`
146
- let base16colorspace= 256
147
- colorscheme jellybeans
152
+ " let base16colorspace=256
153
+ " colorscheme dracula
154
+ colorscheme radicalgoodspeed
148
155
else
149
156
set nocursorcolumn
150
157
set nocursorline
@@ -167,3 +174,29 @@ let g:mkdp_path_to_chrome = "/Applications/Google\\ Chrome.app/Contents/MacOS/Go
167
174
vmap <C-x> :!pbcopy<CR>
168
175
vmap <C-c> :w !pbcopy<CR><CR>
169
176
177
+ set hidden
178
+ let g: racer_cmd = " /home/dongxu/.cargo/bin/racer"
179
+ let $RUST_SRC_PATH = " /home/dongxu/rustc-nightly/src"
180
+
181
+ set tags += ~/.vim/cpp_tags
182
+ " build tags of your own project with Ctrl-F12
183
+ map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q -I _GLIBCXX_NOEXCEPT .<CR>
184
+
185
+ " " OmniCppComplete
186
+ " $ cp -R /usr/include/c++/$GCC_VERSION ~/.vim/cpp_src
187
+ " # it is not necessary to rename headers without an extension
188
+ " # replace the "namespace std _GLIBCXX_VISIBILITY(default)" with "namespace std"
189
+ " $ find . -type f | xargs sed -i 's/namespace std _GLIBCXX_VISIBILITY(default)/namespace std/'
190
+ " $ ctags -f cpp_tags -R --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ -I _GLIBCXX_NOEXCEPT cpp_src
191
+ let OmniCpp_NamespaceSearch = 1
192
+ let OmniCpp_GlobalScopeSearch = 1
193
+ let OmniCpp_ShowAccess = 1
194
+ let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters
195
+ let OmniCpp_MayCompleteDot = 1 " autocomplete after .
196
+ let OmniCpp_MayCompleteArrow = 1 " autocomplete after ->
197
+ let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
198
+ " also necessary for fixing LIBSTDC++ releated stuff
199
+ let OmniCpp_DefaultNamespaces = [" std" , " _GLIBCXX_STD" ]
200
+ " automatically open and close the popup menu / preview window
201
+ au CursorMovedI ,InsertLeave * if pumvisible () == 0 |silent ! pclose |endif
202
+ set completeopt = menuone,menu ,longest,preview
0 commit comments