# SpaceVim **Repository Path**: liyue3078/SpaceVim ## Basic Information - **Project Name**: SpaceVim - **Description**: SpaceVim 使用笔记 - **Primary Language**: VimL - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-08-01 - **Last Updated**: 2023-03-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 官网 [https://spacevim.org/cn/](https://spacevim.org/cn/) ## 配置 1. 配置 [init.toml](init.toml) 2. 字体文件 [SauceCodeProNerdFontComplete-Regular.zip](SauceCodeProNerdFontComplete-Regular.zip) 3. lsp需要文件 [jdt-language-server-latest.tar.gz](jdt-language-server-latest.tar.gz) ### 使用 ### 文件浏览 * 文件树打开:\ f / * 文件树快捷键 快捷键|功能|原因 --|:--:|:-- j|光标上移|和vim本身的快捷键保持一致 k|光标下移|和vim本身的快捷键保持一致 h|关闭目录或切到上层目录|不需要横向操作,所以改为目录闭合操作 l|打开目录或文件|不需要横向操作,所以改为打开目录或文件 p|预览文件(非文本文件会显示二进制内容)| v|使用外部应用预览| l|打开目录或文件,文件可以选择放在哪个区域显示| yy|拷贝文件绝对路径到剪切板| #|标记与光标下相同文件名的文件| |切换标记| *|切换所有标记| U|取消所有标记| c|拷贝文件| m|移动文件 d|删除文件| r|重命名文件| N|新建文件或目录| K|新建目录| .|切换隐藏文件的显示| L|切换文件树路径| &|切换文件树路径为项目路径| /|切换文件树路径为根路径| ~|切换文件树路径为用户路径| ### 设置(以下操作加上g:spacevim_即为对应的全局变量): ``` plugin_bundle_dir:插件缓存路径 relativenumber:是否使用相对行号,相对行号更合适区域操作 windows_leader:窗口操作的前缀 default_indent:默认缩进空格 ``` ### *easymotion:快速跳转 ``` 动作 显示的索引 ``` ### git 操作 键|操作 --|:-- \g|弹出git操作菜单 ``` ┌─────┬──────────┐ │ │ │ #DIRTY# │ ▼ ▲ │ :Gina status │ << : stage │ │ │ │ >> : unstage │ │ │ │ -- : toggle :write │ #STAGED# │ == : discard ▲ │ │ │ pp : patch │ ├──────────┤ │ dd : diff │ │ ▼ #CLEAN# │ :Gina commit │ ! : switch --amend │ │ │ │ :w : save cache │ ▼ │ │ :q : commit changes (confirm) └────────────────┘ │ :wq : commit changes (immediate) ``` * Single command. Users do not need to remember tons of commands * :Gina {command} will execute a gina command or a git raw command asynchronously * :Gina! {command} will execute a git raw command asynchronously * :Gina!! {command} will execute a git raw command in a shell (mainly for :Gina!! add -p or :Gina!! rebase -i) * Action based. Users do not need to remember tons of mappings * ? to see the help * a to select an action to perform (complete with ) * . to repeat previous action