c支持:在VimgVim中编辑CC ++程序。 插入代码段,编译代码,运行MakeCMake ...并查找帮助

  • F2_213444
    了解作者
  • 340.8KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-10 10:09
    上传日期
c支持:在VimgVim中编辑CC ++程序。 插入代码段,编译代码,运行MakeCMake ...并查找帮助
c-support-master.zip
内容介绍
Preface ================================================================================ This repository is mainly for the use with plug-in managers. Have a look at the [Screenshot Page](https://wolfgangmehner.github.io/vim-plugins/csupport.html). The development happens in [WolfgangMehner/vim-plugins](https://github.com/WolfgangMehner/vim-plugins). -------------------------------------------------------------------------------- README for c.vim (Version 6.2.1pre) / February 05 2017 ================================================================================ * INSTALLATION * RELEASE NOTES * FILES * ADDITIONAL TIPS * CREDITS C/C++-IDE for Vim/gVim. It is written to considerably speed up writing code in a consistent style. This is done by inserting complete statements, idioms, comments, and code snippets. These code fragments are provided in an extendible template library. Syntax checking, compiling, running a program, running indent or code checkers can be done with a keystroke. There are many additional hints and options which can improve speed and comfort when writing C/C++. See the help file csupport.txt for more information. This plugin can be used with Vim version 7.x. -------------------------------------------------------------------------------- INSTALLATION ================================================================================ A system-wide installation for all users can also be done. This will have further effects on how the plug-in works. For a step-by-step instruction, as well as an explanation of the other consequences, please see the help file 'doc/csupport.txt' or look up the documentation via: :help csupport-system-wide (1) LINUX ---------------------------------------------------------------------- The subdirectories in the zip archive c-support.zip mirror the directory structure which is needed below the local installation directory $HOME/.vim/ (find the value of $HOME with `:echo $HOME` from inside Vim). (1.0) Save the template files in '$HOME/.vim/c-support/templates/Templates' if you have changed any of them. (1.1) Copy the zip archive c-support.zip to $HOME/.vim and run unzip c-support.zip Afterwards, these files should exist: $HOME/.vim/autoload/mmtemplates/... $HOME/.vim/doc/... $HOME/.vim/plugin/c.vim (1.2) Loading of plugin files must be enabled. If not use :filetype plugin on This is the minimal content of the file '$HOME/.vimrc'. Create one if there is none or use the files in $HOME/.vim/c-support/rc as a starting point. (1.3) Set at least some personal details. Use the map \ntw inside a C/C++ buffer or the menu entry: C/C++ -> Snippets -> template setup wizard It will help you set up the file _runtimepath_/templates/personal.templates . The file is read by all plug-ins supporting this feature to get your personal details. Here is the minimal personalization (my settings as an example): SetMacro( 'AUTHOR', 'Wolfgang Mehner' ) SetMacro( 'AUTHORREF', 'wm' ) SetMacro( 'EMAIL', 'wolfgang-mehner@web.de' ) SetMacro( 'COPYRIGHT', 'Copyright (c) |YEAR|, |AUTHOR|' ) Use the file $HOME/.vim/templates/c.templates to customize or add to your C/C++ template library. It can also be set up via the wizard. (Read more about the template system in the plugin documentation) (1.4) Make the plugin help accessible by typing the following command on the Vim command line: :helptags $HOME/.vim/doc/ (1.5) Consider additional settings in the file '$HOME/.vimrc'. The files customization.vimrc and customization.gvimrc are replacements or extensions for your .vimrc and .gvimrc. You may want to use parts of them. The files are documented. (1.6) To enable additional tools, add these lines to your '$HOME/.vimrc'. To enable the CMake and Doxygen tools, use: let g:C_UseTool_cmake = 'yes' let g:C_UseTool_doxygen = 'yes' For enabling the Doxygen templates, see chapter 1.10.1 of the documentation: :help csupport-doxygen-enable (2) WINDOWS ---------------------------------------------------------------------- The subdirectories in the zip archive c-support.zip mirror the directory structure which is needed below the local installation directory $HOME/vimfiles/ (find the value of $HOME with `:echo $HOME` from inside Vim). (2.0) Save the template files in '$HOME/vimfiles/c-support/templates/Templates' if you have changed any of them. (2.1) Copy the zip archive c-support.zip to $HOME/vimfiles and run unzip c-support.zip Afterwards, these files should exist: $HOME/vimfiles/autoload/mmtemplates/... $HOME/vimfiles/doc/... $HOME/vimfiles/plugin/c.vim (2.2) Loading of plugin files must be enabled. If not use :filetype plugin on This is the minimal content of the file '$HOME/_vimrc'. Create one if there is none or use the files in $HOME/vimfiles/c-support/rc as a starting point. (2.3) Set at least some personal details. Use the map \ntw inside a C/C++ buffer or the menu entry: C/C++ -> Snippets -> template setup wizard It will help you set up the file _runtimepath_/templates/personal.templates . The file is read by all plug-ins supporting this feature to get your personal details. Here is the minimal personalization (my settings as an example): SetMacro( 'AUTHOR', 'Wolfgang Mehner' ) SetMacro( 'AUTHORREF', 'wm' ) SetMacro( 'EMAIL', 'wolfgang-mehner@web.de' ) SetMacro( 'COPYRIGHT', 'Copyright (c) |YEAR|, |AUTHOR|' ) Use the file $HOME/vimfiles/templates/c.templates to customize or add to your C/C++ template library. It can also be set up via the wizard. (Read more about the template system in the plugin documentation) (2.4) Make the plugin help accessible by typing the following command on the Vim command line: :helptags $HOME\vimfiles\doc\ (2.5) Consider additional settings in the file '$HOME/_vimrc'. The files customization.vimrc and customization.gvimrc are replacements or extensions for your _vimrc and _gvimrc. You may want to use parts of them. The files are documented. (2.6) To enable additional tools, add these lines to your '$HOME/_vimrc'. To enable the CMake and Doxygen tools, use: let g:C_UseTool_cmake = 'yes' let g:C_UseTool_doxygen = 'yes' For enabling the Doxygen templates, see chapter 1.10.1 of the documentation: :help csupport-doxygen-enable (2.7) Make sure the shell is set up correctly. The options 'shell', 'shellcmdflag', 'shellquote', and 'shellxquote' must be set consistently. Compare `:help csupport-troubleshooting`. (3) ADDITIONAL REMARKS ---------------------------------------------------------------------- There are a lot of features and options which can be used and influenced: * use of the extendible template files and tags * surround marked blocks with statements * using and managing personal code snippets * generate/remove multiline comments * picking up prototypes * C/C++ dictionaries for keyword completion * (re)moving the root menu Look at the C-Support help with: :help csupport +-----------------------------------------------+ | +-------------------------------------------+ | | | ** PLEASE READ THE DOCUMENTATION ** | | | | Actions differ for different modes! | | | +-------------------------------------------+ | +-----------------------------------------------+ Any problems? See the TROUBLESHOOTING section at the end of the help file 'doc/csupport.txt'. -------------------------------------------------------------------------------- RELEASE NOTES ================================================================================ RELEASE NOTES FOR VERSION 6.2.1 ------------------------------------------
评论
    相关推荐
    • vim
      はじめに 克隆 vimrc→〜/ .vimrc 酿造 CocInstall的coc-clangd ...vim航空公司,vim航空公司主题,vim设备图标 备忘单 让g:cheatsheet#cheat_file ='〜/ .vim / cheatsheet.md' 插件:reireias / vim-cheatsheet
    • VIM configuration
      VIM工具附带常用插件,已打包好,也是从别人那下载的资源,现免费share出来供给有需要的码农,不谢
    • vim
      vim航空公司 像空气一样轻薄的vim的倾斜和平均状态/标签。 正确加载插件后,Vim会在每个窗口的底部绘制一个漂亮的状态行。 该行包括几个部分,每个部分显示一些信息。 默认情况下(无配置),此行如下所示: +--...
    • Vim
      Vim
    • hacking vim
      hacking vim ,对vim的hacking,即详细的介绍和深入的攻坚,非初学者使用。
    • vim
      vim
    • vim
      vim
    • vim
      vimrc配置文件
    • vim
      vim 依存关系 吉特 卷曲 vim 下载vimrc curl -L -o ~ /.vimrc https://kaan.uno 安装插件 下载vimrc之后; 运行vim,然后在vim中运行此命令:PlugInstall
    • vim
      vim