settings.json配置 vim

{
  "redhat.telemetry.enabled": true,
  "java.debug.settings.exceptionBreakpoint.skipClasses": [],
  "java.jdt.ls.java.home": "/Users/yangjunxiong/Library/Java/JavaVirtualMachines/ms-17.0.18/Contents/Home",
  "java.configuration.runtimes": [
    {
      "name": "JavaSE-17",
      "path": "/Users/yangjunxiong/Library/Java/JavaVirtualMachines/ms-17.0.18/Contents/Home",
      "default": true,
    },
  ],
  "maven.terminal.useJavaHome": true,
  "maven.terminal.customEnv": [
    {
      "environmentVariable": "JAVA_HOME",
      "value": "/Users/yangjunxiong/Library/Java/JavaVirtualMachines/ms-17.0.18/Contents/Home",
    },
  ],
  "maven.executable.path": "/Users/yangjunxiong/Desktop/yjx/tool/apache-maven-3.6.3/bin/mvn",
  "maven.executable.options": "-DskipTests -T 12",
  "java.configuration.maven.userSettings": "/Users/yangjunxiong/Desktop/yjx/tool/apache-maven-3.6.3/conf/settings.xml",
  "intellij-idea-keybindings.useCamelHumpsWords": true,
  "terminal.integrated.enableMultiLinePasteWarning": "never",
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features",
  },
  "maven.excludedFolders": [
    "**/.*",
    "**/node_modules",
    "**/target",
    "**/bin",
    "**/archetype-resources",
  ],
  "AI.rules.importClaudeMd": true,
  // 让 Vim 插件与系统剪贴板交互
  "vim.useSystemClipboard": true,
  // 开启 vim 模式下的易移动插件
  "vim.easymotion": true,
  "vim.leader": "<Space>",
  // 开启vim模式
  "vim.insertModeKeyBindings": [
    {
      //jj进入vim模式
      "before": [
        "j",
        "j"
      ],
      "after": [
        "<Esc>"
      ],
    }
  ],
  //vim 模式下的按键绑定
  "vim.normalModeKeyBindings": [
    {
      "before": [
        "<leader>",
        "s"
      ],
      "after": [
        "<leader>",
        "<leader>",
        "s"
      ]
    },
    {
      // 复制单个单词到寄存器a并标记到o (使用快捷键 空格+y)
      // 注释:(mo => 标记o),(+yiw =>复制当前单词到系统剪切板),("a => 寄存器a) ,("ayiw => 复制当前单词到寄存器a)
      // 'o => 跳回标记o
      "before": [
        "<Space>",
        "y"
      ],
      "after": [
        "<Esc>",
        "m",
        "o",
        "\"",
        "+",
        "y",
        "i",
        "w",
        "\"",
        "a",
        "y",
        "i",
        "w",
        "<Esc>",
      ],
    },
    {
      // 剪切单个单词到寄存器a并标记到o (使用快捷键 空格+x)
      // 注释:(mo => 标记o[标记为的是使用''来回跳标记]),(+yiw =>复制当前单词到系统剪切板),("a => 寄存器a) ,("ayiw => 复制当前单词到寄存器a),(diw =>删除当前单词)
      // 'o => 跳回标记o
      "before": [
        "<Space>",
        "x"
      ],
      "after": [
        "<Esc>",
        "m",
        "o",
        "\"",
        "+",
        "y",
        "i",
        "w",
        "\"",
        "a",
        "y",
        "i",
        "w",
        "d",
        "i",
        "w",
        "<Esc>",
      ],
    },
    {
      // 删除单个字符串并黏贴寄存器a的内容并来回标记o和p  (使用快捷键 空格+v)
      // 注释:(mp => 标记p),(viw => 选中当前单词),("a => 寄存器a),(p => 将寄存器a内容黏贴到选中的单词)
      // 'p => 跳回标记p
      "before": [
        "<Space>",
        "v"
      ],
      "after": [
        "<Esc>",
        "m",
        "p",
        "v",
        "i",
        "w",
        "\"",
        "a",
        "p",
        "'",
        "o",
        "'",
        "p",
        "<Esc>",
      ],
    },
    {
      // shift+h--zz(向上翻页)(使用快捷键 空格+k)
      "before": [
        "<Space>",
        "k"
      ],
      "after": [
        "<Esc>",
        "<S-h>",
        "z",
        "z",
        "<Esc>"
      ],
    },
    {
      // shift+l--zz(向下翻页)(使用快捷键 空格+j)
      "before": [
        "<Space>",
        "j"
      ],
      "after": [
        "<Esc>",
        "<S-l>",
        "z",
        "z",
        "<Esc>"
      ],
    },
    {
      // " 重做 是u的反操作(使用快捷键 空格+u)
      "before": [
        "<Space>",
        "u"
      ],
      "commands": [
        ":redo"
      ]
    },
  ]
}

neovim

{

  // Mac用户 → 用zsh(Mac 2019年后的默认Shell,比bash更现代)
  "terminal.integrated.defaultProfile.osx": "zsh",
    // ==========================================
  // 终端外观配置(让终端更好看)
  // ==========================================
  "terminal.integrated.fontFamily": "Menlo, Monaco, 'Courier New', monospace",
  "terminal.integrated.fontSize": 13,  // 13号字体,比默认稍大,更舒适
  // ==========================================
  // Claude Code专用配置
  // ==========================================
  // 让CLAUDE.md文件有Markdown语法高亮
  "files.associations": {
    "CLAUDE.md": "markdown"
  },
    // ==========================================
  // 自动保存(强烈推荐!)
  // ==========================================
  "files.autoSave": "afterDelay",  // 编辑后自动保存,不怕忘记保存丢失改动
  "files.autoSaveDelay": 1000,      // 延迟1秒(1000毫秒)保存
  "security.workspace.trust.untrustedFiles": "open",
  "redhat.telemetry.enabled": true,
  "java.debug.settings.exceptionBreakpoint.skipClasses": [],
  "java.jdt.ls.java.home": "/usr/libexec/java_home -v 21",
  "java.configuration.runtimes": [
    {
      "name": "Java-21",
      "path": "/usr/libexec/java_home -v 21",
      "default": true,
    },
  ],
  "maven.terminal.useJavaHome": true,
  "maven.terminal.customEnv": [
    {
      "environmentVariable": "JAVA_HOME",
      "value": "/usr/libexec/java_home -v 21",
    },
  ],
  "maven.executable.path": "/Users/yaopingting/Desktop/yjx/tool/apache-maven-3.6.3/bin/mvn",
  "maven.executable.options": "-DskipTests -T 2C",
  "java.configuration.maven.userSettings": "/Users/yaopingting/Desktop/yjx/tool/apache-maven-3.6.3/conf/settings.xml",
  "intellij-idea-keybindings.useCamelHumpsWords": true,
  "terminal.integrated.enableMultiLinePasteWarning": "never",
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features",
  },
  "maven.excludedFolders": [
    "**/.*",
    "**/node_modules",
    "**/target",
    "**/bin",
    "**/archetype-resources",
  ],
  "AI.rules.importClaudeMd": true,
    /*-------------neovim相关配置  开始---------------------*/
  /* neovim配置 开始 */
  "vscode-neovim.useWSL": false,
  "vscode-neovim.useSystemClipboard": true,
  "vscode-neovim.registers.enableExtended": true,
  "vscode-neovim.neovimExecutablePaths.darwin": "/usr/local/nvim/bin/nvim",
  "vscode-neovim.neovimInitVimPaths.darwin": "~/.config/nvim/traeInit.lua",
  "vscode-neovim.highlightGroups.highlights": {
    "IncSearch": {
      "backgroundColor": "theme.editor.findMatchBackground",
      "borderColor": "theme.editor.findMatchBorder"
    },
    "Search": {
      "backgroundColor": "theme.editor.findMatchHighlightBackground",
      "borderColor": "theme.editor.findMatchHighlightBorder"
    },
    "Visual": {
      "backgroundColor": "theme.editor.selectionBackground"
    },
  },
  "extensions.experimental.affinity": {
    "asvetliakov.vscode-neovim": 1
  },
  "vscode-neovim.compositeKeys": {
    "kk": {
      "command": "vscode-neovim.escape",
    },
    "jj": {
      "command": "vscode-neovim.escape",
    },
  },
  /*-------------neovim相关配置  结束---------------------*/

  "workbench.colorTheme": "IntelliJ IDEA New UI Light",
  "claudeCode.preferredLocation": "panel",
  "claude-history.database.storeMessages": true,
  "claude-history.dashboard.enableButton": false,
  "claude-history.claudeDirectory": "",
  "claude-history.claudeChatDirectories": [],
  "claude-history.codexChatDirectories": [],
  "claude-history.autoRefreshEnabled": true,
  "claude-history.autoRefreshInterval": 2,
  "claude-history.search.enableAutoIndexing": true,
  "claude-history.search.lazyIndexing": true,
  "claude-history.search.maxFileSize": 50,
  "claude-history.search.maxMessagesPerFile": 1000,
  "claude-history.enableErrorReporting": true,
  "claude-history.enableUsageStatsSharing": true,
  "claude-history.statusBar.showUsage": false,
  "claude-history.contextMenu.showFileTimeline": true,
  "claude-history.tips.enabled": true,
  "explorer.confirmDelete": false,
  "AI.rules.importAgentsMd": false,
  "editor.fontSize": 15,
  "git.enableSmartCommit": true,
  "claudeCode.useTerminal": true,
  "git.confirmSync": false,
}

Logo

欢迎加入DeepSeek 技术社区。在这里,你可以找到志同道合的朋友,共同探索AI技术的奥秘。

更多推荐