GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cpp-mode/README.md at master · chxuan/cpp-mode

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
61 lines (35 loc) · 1.36 KB
/

README.md

Copy path

File metadata and controls

61 lines (35 loc) · 1.36 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

cpp-mode: A C++ IDE for vim

安装

  • vim-plug

    Plug 'chxuan/cpp-mode'

  • Vundle

    Plugin 'chxuan/cpp-mode'

使用

  • :CopyCode

    拷贝函数或变量,和:PasteCode结合使用

  • :PasteCode

    生成函数实现或变量定义,和:CopyCode结合使用

  • :GoToFunImpl

    转到函数实现,该功能可替代ycm提供的转到函数实现(因为ycm转到函数实现经常不成功)

  • :Switch

    c++头文件和实现文件切换

  • :FormatFunParam

    格式化函数参数,用于函数参数列表过多的情况

  • :GenTryCatch

    生成try-catch代码块

参考配置

请将以下配置加到 ~/.vimrc,如果不喜欢以下映射,可根据个人喜好更改。

nnoremap <leader>y :CopyCode<cr>
nnoremap <leader>p :PasteCode<cr>
nnoremap <leader>U :GoToFunImpl<cr>
nnoremap <silent> <leader>a :Switch<cr>
nnoremap <leader><leader>fp :FormatFunParam<cr>
nnoremap <leader><leader>if :FormatIf<cr>
nnoremap <leader><leader>t dd :GenTryCatch<cr>
xnoremap <leader><leader>t d :GenTryCatch<cr>

License

This software is licensed under the MIT license. © 2018 chxuan

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.