# VIM **Repository Path**: minson-lee/vim ## Basic Information - **Project Name**: VIM - **Description**: 备份我的 VIM 配置 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-02-20 - **Last Updated**: 2025-11-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # VIM ## 目的 用 VIM 有一段时间了,每次换电脑都需要重新配置自己的 VIM,所以把 VIM 的配置信息存储一下,后面方便一键自动化配置。 利用 Git 子模块的方式,将这些配置、插件进行存放。 ## 如何一键安装配置和插件? 确保已经正确安装了 `8.0` 以上版本的 VIM,然后执行下列代码即可。 Github 和 Gitee 地址同时更新 ```sh # Github 地址 git clone git@github.com:MinsonLee/vim.git ~/.vim --recurse-submodules --remote-submodules # Gitee 地址 git clone git@gitee.com:minson-lee/vim.git ~/.vim --recurse-submodules --remote-submodules ``` ## 已安装插件列表 没有想过将 VIM 打造成一个强大的 IDE 工具,此处只是将自己使用比较多且比较好用的插件进行了管理。 - [vim-plug](https://github.com/junegunn/vim-plug/branches) : VIM 插件管理包 - [vim-indent-guides](https://github.com/nathanaelkane/vim-indent-guides): 代码对齐线 - [hotoo/pangu.vim](https://github.com/hotoo/pangu.vim.git) : 中文排版优化 - [mattn/emmet-vim](https://github.com/mattn/emmet-vim.git) : 写前端代码的 Emmet 利器插件 - [nerdtree](https://github.com/preservim/nerdtree.git) : 树形目录 - [nerdtree-tabs](https://github.com/jistr/vim-nerdtree-tabs) : 树形目录显示增强,使得可以用 tab 方式打开新文件 - [Xuyuanp/nerdtree-git-plugin](https://github.com/Xuyuanp/nerdtree-git-plugin.git) : 树形目录 Git 插件 - `r` 刷新目录 - `t` 以新 tab 方式打开 - `i` 水平分割当前 tab 窗口并打开文件 - `s` 垂直分割当前 tab 窗口并打开文件 - `:tabs` 查看所有打开的 `tab` - `qa` 关闭所有的 `tab` - `ngt` 跳转到第 n 个 `tab` (在:`vimrc` 中自定义了快捷键 `,n` 跳转到第 `n` 个 tab) - [更多快捷键](https://gist.github.com/ifels/e0a6d79ee60e113f4294)