add cpp-mode
This commit is contained in:
parent
39b7c5f328
commit
43bb4c8242
8
.vimrc
8
.vimrc
@ -101,7 +101,7 @@ call plug#begin('~/.vim/plugged')
|
||||
|
||||
Plug 'Valloric/YouCompleteMe'
|
||||
Plug 'ajh17/VimCompletesMe'
|
||||
Plug 'chxuan/cppfun'
|
||||
Plug 'chxuan/cpp-mode'
|
||||
Plug 'chxuan/change-colorscheme'
|
||||
Plug 'chxuan/prepare-code'
|
||||
Plug 'chxuan/vim-buffer'
|
||||
@ -192,13 +192,13 @@ let g:airline_left_alt_sep = ''
|
||||
let g:airline_right_sep = ''
|
||||
let g:airline_right_alt_sep = ''
|
||||
|
||||
" cppfun
|
||||
" cpp-mode
|
||||
nnoremap <leader>y :CopyFun<cr>
|
||||
nnoremap <leader>p :PasteFun<cr>
|
||||
nnoremap <leader>U :GoToDefinition<cr>
|
||||
nnoremap <silent> <leader>a :Switch<cr>
|
||||
nnoremap <leader><leader>fp :FormatFunParam<cr>
|
||||
nnoremap <leader><leader>if :FormatIf<cr>
|
||||
nnoremap <silent> <leader>a :Switch<cr>
|
||||
|
||||
" change-colorscheme
|
||||
nnoremap <silent> <F9> :PreviousColorScheme<cr>
|
||||
@ -241,7 +241,7 @@ let g:ycm_seed_identifiers_with_syntax = 1
|
||||
let g:ycm_complete_in_comments = 1
|
||||
let g:ycm_complete_in_strings = 1
|
||||
nnoremap <leader>u :YcmCompleter GoToDeclaration<cr>
|
||||
" 已经使用cppfun插件提供的转到函数实现的功能
|
||||
" 已经使用cpp-mode插件提供的转到函数实现的功能
|
||||
" nnoremap <leader>i :YcmCompleter GoToDefinition<cr>
|
||||
nnoremap <leader>o :YcmCompleter GoToInclude<cr>
|
||||
nnoremap <leader>ff :YcmCompleter FixIt<cr>
|
||||
|
||||
@ -72,7 +72,7 @@ An automatic configuration program for vim
|
||||
|
||||
| 插件 | 说明 |
|
||||
| ------- | ----- |
|
||||
| [cppfun][58] | 提供生成函数实现、函数声明/实现跳转、.h .cpp切换等功能(I'm author:smile:) |
|
||||
| [cpp-mode][58] | 提供生成函数实现、函数声明/实现跳转、.h .cpp切换等功能(I'm author:smile:) |
|
||||
| [change-colorscheme][27] | 随心所欲切换主题(I'm author:smile:) |
|
||||
| [prepare-code][67] | 新建文件时,生成预定义代码片段(I'm author:smile:) |
|
||||
| [vim-buffer][70] | vim缓存操作(I'm author:smile:) |
|
||||
@ -201,7 +201,7 @@ Q & A
|
||||
|
||||
![][40]
|
||||
|
||||
- cppfun
|
||||
- cpp-mode
|
||||
|
||||
![][71]
|
||||
|
||||
@ -287,7 +287,7 @@ Q & A
|
||||
[54]: https://github.com/VundleVim/Vundle.vim
|
||||
[56]: https://github.com/Yggdroot/LeaderF
|
||||
[57]: https://github.com/Shougo/echodoc.vim
|
||||
[58]: https://github.com/chxuan/cppfun
|
||||
[58]: https://github.com/chxuan/cpp-mode
|
||||
[59]: https://github.com/chxuan/vimplus/blob/master/help.md
|
||||
[60]: https://github.com/terryma/vim-smooth-scroll
|
||||
[61]: https://github.com/terryma/vim-expand-region
|
||||
@ -299,7 +299,7 @@ Q & A
|
||||
[68]: https://github.com/rhysd/clever-f.vim
|
||||
[69]: https://github.com/rhysd/github-complete.vim
|
||||
[70]: https://github.com/chxuan/vim-buffer
|
||||
[71]: https://raw.githubusercontent.com/chxuan/cppfun/master/screenshots/cppfun.gif
|
||||
[71]: https://raw.githubusercontent.com/chxuan/cpp-mode/master/screenshots/cpp-mode.gif
|
||||
[72]: https://github.com/chxuan/vim-replace
|
||||
[73]: https://github.com/yianwillis/vimcdoc
|
||||
[74]: https://github.com/ajh17/vimcompletesme
|
||||
|
||||
Loading…
Reference in New Issue
Block a user