# ProVim **Repository Path**: ProVim/vim ## Basic Information - **Project Name**: ProVim - **Description**: ProVim C/C++ - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-20 - **Last Updated**: 2023-02-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## ProVim [Vi命令手册](https://www.w3cschool.cn/vim/1xa9oozt.html) ### 快捷键 #### Fn系列快捷键 |Fn系列快捷键|说明| |----|----| F1|帮助文档 F2| startify欢迎界面 F3|打开关闭目录,NERDTreeToggle F4|打开关闭Tagbar F5|打开Undotree F6|打开终端,退出exit F7|编译运行,支持c、cpp、java、sh、python、htm、go、mkd F8|调试 F9| F10| F11| F12| #### ctrl系列快捷键 |Ctrl系列快捷键|说明| |----|----| F1|帮助文档 #### shift系列快捷键 |Shift系列快捷键|说明| |----|----| F1|帮助文档 #### leader系列快捷键 |Leader系列快捷键|说明| |----|----| F1|帮助文档 #### silent系列快捷键 |silent系列快捷键|说明| |----|----| F1|帮助文档 ### 插件 #### theme - [vim-startify]() - [vim-devicons](https://github.com/ryanoasis/vim-devicons) - [indentLine]() - [rainbow](https://github.com/luochen1990/rainbow) - [vim-monokai]() - [vim-airline](https://github.com/vim-airline/vim-airline) - [vim-airline-theme](https://github.com/vim-airline/vim-airline-themes) - [eleline.vim]() - [vim-scrollstatus] - [rainbow] - [indentLine] - [vim-hexokinase] #### layout - [nerdtree]() ```txt ctr+w+h 光标focus左侧树形目录 ctrl+w+l 光标focus右侧文件显示窗口 ctrl+w 光标自动在左右侧窗口切换 ?: 快速帮助文档 o: 打开一个目录或者打开文件,创建的是buffer,也可以用来打开书签 go: 打开一个文件,但是光标仍然留在NERDTree,创建的是buffer t: 打开一个文件,创建的是Tab,对书签同样生效 T: 打开一个文件,但是光标仍然留在NERDTree,创建的是Tab,对书签同样生效 i: 水平分割创建文件的窗口,创建的是buffer gi: 水平分割创建文件的窗口,但是光标仍然留在NERDTree s: 垂直分割创建文件的窗口,创建的是buffer gs: 和gi,go类似 x: 收起当前打开的目录 X: 收起所有打开的目录 e: 以文件管理的方式打开选中的目录 D: 删除书签 P: 大写,跳转到当前根路径 p: 小写,跳转到光标所在的上一级路径 K: 跳转到第一个子路径 J: 跳转到最后一个子路径 : 在同级目录和文件间移动,忽略子目录和子文件 C: 将根路径设置为光标所在的目录 u: 设置上级目录为根路径 U: 设置上级目录为跟路径,但是维持原来目录打开的状态 r: 刷新光标所在的目录 R: 刷新当前根路径 I: 显示或者不显示隐藏文件 f: 打开和关闭文件过滤器 q: 关闭NERDTree A: 全屏显示NERDTree,或者关闭全屏 Bookmark [name]: 书签 ``` - [nerdtree-git-plugin](https://github.com/Xuyuanp/nerdtree-git-plugin) - [vista.vim](https://github.com/liuchengxu/vista.vim) ```txt :Vista :Vista show :Vista toc :Vista focus :Vista coc :Vista ale :Vista lcn :Vista ctags :Vista vim_lsp :Vista vim_lsc :Vista nvim_lsp :Vista finder ``` - [undotree](https://github.com/mbbill/undotree) ```txt ``` #### Editor Enhancement - delimitMate - auto-pairs - vim-visual-multi - antovim - vim-surround - wildfire.vim - vim-after-object - tabular - vim-capslock - vim-easymotion - FastFold - vim-peekaboo - context.vim - -vim-subversive - argtextobj.vim - clever-f.vim - splitjoin.vim - pair-maker.vim - vim-move - vim-numbertoggle #### File navigation - fzf - fzf.vim ```txt `:Files [PATH]` | Files (runs `$FZF_DEFAULT_COMMAND` if defined) `:GFiles [OPTS]` | Git files ( `git ls-files` ) `:GFiles?` | Git files ( `git status` ) `:Buffers` | Open buffers `:Colors` | Color schemes `:Ag [PATTERN]` | {ag}{7} search result ( `ALT-A` to select all, `ALT-D` to deselect all) `:Rg [PATTERN]` | {rg}{8} search result ( `ALT-A` to select all, `ALT-D` to deselect all) `:Lines [QUERY]` | Lines in loaded buffers `:BLines [QUERY]` | Lines in the current buffer `:Tags [QUERY]` | Tags in the project ( `ctags -R` ) `:BTags [QUERY]` | Tags in the current buffer `:Marks` | Marks `:Windows` | Windows `:Locate PATTERN` | `locate` command output `:History` | `v:oldfiles` and open buffers `:History:` | Command history `:History/` | Search history `:Snippets` | Snippets ({UltiSnips}{9}) `:Commits` | Git commits (requires {fugitive.vim}{10}) `:BCommits` | Git commits for the current buffer; visual-select lines to track changes in the range `:Commands` | Commands `:Maps` | Normal mode mappings `:Helptags` | Help tags [1] `:Filetypes` | File types ``` - LeaderF - rnvimr - vim-rooter - any-jump.vim #### Auto Complete - [coc.vim](https://github.com/neoclide/coc.nvim) ```txt gd: 函数跳转 crtl+o :回调到上次位置 ``` - tmux-complete.vim #### Snippets - [vim-snippets] - [utisnips] #### Autoformat - vim-maktaba - vim-codefmt #### comment - tcomment_vim #### Git - [nerdtree-git-plugin](https://github.com/Xuyuanp/nerdtree-git-plugin) - vim-gitignore - fzf-gitignore - vim-gitgutter - vim-fugitive #### web #### c/c++ #### shell #### python