Skip to content

Instantly share code, notes, and snippets.

@markzyu
Last active July 20, 2026 19:37
Show Gist options
  • Select an option

  • Save markzyu/f464e47d265462bf7fe558da9fa5b2cc to your computer and use it in GitHub Desktop.

Select an option

Save markzyu/f464e47d265462bf7fe558da9fa5b2cc to your computer and use it in GitHub Desktop.
Backup of Cursor configs

This is just a backup of my Cursor configs so that Vim works well.

  • Removes the default Cursor "TAB" keybind which applies to both normal mode and input mode
  • Removes the Agents button on the title bar of Cursor's code editor
  • Adds a "Shift+Enter" Keybind to accept Cursor's inline "tabbing" suggestions
  • Adds a new "TAB" keybind during normal mode only, which opens the standard IntelliSense auto complete for any keyword under vim cursor.

This can help if: You want to prioritize Vim mode and IntelliSense over Cursor, and you find Cursor's default keybinds disruptive, especially when manually formatting indents

[
{
"key": "Tab",
"command": "-editor.action.acceptCursorTabSuggestion",
"when": "cpp.shouldAcceptTab"
},
{
"key": "Tab",
"command": "-acceptSelectedSuggestion",
},
{
"key": "Shift+Enter",
"command": "editor.action.acceptCursorTabSuggestion",
"when": "editorTextFocus && cpp.shouldAcceptTab && !editorReadonly"
}
]
{
"vim.normalModeKeyBindings": [
{
"before": ["Tab"],
"after": ["h", "e", "a"],
"commands": [
"editor.action.triggerSuggest"
]
}
],
"workbench.agentsWindowButton.enabled": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment