Skip to content

Commit

Permalink
add cpp-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Jun 14, 2018
1 parent 39b7c5f commit 43bb4c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:) |
Expand Down Expand Up @@ -201,7 +201,7 @@ Q & A
![][40]
- cppfun
- cpp-mode
![][71]
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 43bb4c8

Please sign in to comment.