# nvim-config **Repository Path**: d1s12t/nvim-config ## Basic Information - **Project Name**: nvim-config - **Description**: d1s12t的nvim配置文件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-15 - **Last Updated**: 2022-08-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # nvim-config d1s12t的nvim配置 ## 依赖 ```bash pacman -S stow ranger ueberzug python-pip yarn npm xclip ripgrep ``` ## 安装 ```bash git clone https://gitee.com/d1s12t/nvim-config.git cd nvim-config stow nvim ``` ## 部分快捷键 ### 多光标支持[vim-visual-multi](https://github.com/Forgus/vim-visual-multi) | 快捷键 | 说明 | |---------------|---------------------------------------------------------------------------------------------------| | `` | 选择单词并编辑(第一次选中当前光标所在词,之后选中相同词并添加光标,可用于快速编辑或查找相同单词) | | `` | 向上/下添加光标 | | `n`/`N` | 向上/下触发下一次选择事件(例如使用``选中当前词,并按`N`向上寻找相同词并添加光标 ) | | `[`/`]` | 移动到上/下一个光标 | | `q` | 忽略当前选择事件并查找下一个 | | `Q` | 移除当前光标 | ### 快速修改包裹符号[vim-surround](https://github.com/tpope/vim-surround) | 快捷键 | 说明 | |------------------------|---------------------------------------| | `cs"'` | 将双引号包裹改为单引号包裹 | | `cs'` | 将单引号包裹改为``和``标签包裹 | | `ds'` | 移除单引号包裹 | | `ys+文本对象+包裹符号` | 使用包裹符号包裹文本对象选中的内容 | > 使用左括号和右括号作为包裹符号的区别:
> 左括号:两端无空格 例如在“Hello”处按`ysiw]`: `Hello world!` ==> `[Hello] world!`
> 右括号:两端右空格 例如在“Hello"处按`cs]{`: `[Hello] world!` ==> `{ Hello } world!`
### LeaderF模糊查找[LeaderF](https://github.com/vim-scripts/LeaderF) | 快捷键 | 说明 | |--------------------------|----------------------------------| | `` | 退出LeaderF | | `` | 在模糊查找模式和正则模式之间切换 | | `` | 在完整路径和仅文件名模式之间切换 | | `` | 从剪切板粘贴 | | `` | 清空当前输入内容 | | `` | 在水平分割窗口打开 | | `` | 在垂直分割窗口打开 | | `` | 在新标签页打开 | | `` | 刷新缓存 | | ``或`` | 选择多个文件 |