Lubuntu系统下Sublime Text 3用户按键映射无法覆盖默认设置求助
Hey there! Let's troubleshoot why your custom keybinds aren't kicking in. I’ve run into similar snags on Linux desktops before, so here are the most likely fixes to try:
1. Double-Check Your User Keymap File
First, make sure you’re editing the right file—the one in your User package, not the default system keymap. On Lubuntu, this path should be:~/.config/sublime-text-3/Packages/User/Default (Linux).sublime-keymap
Next, verify your JSON syntax is perfect (even a missing comma can break everything). Your code should look exactly like this:
[ { "keys": ["alt+pageup"], "command": "next_view" }, { "keys": ["alt+pagedown"], "command": "prev_view" } ]
Save the file, then fully restart Sublime Text—sometimes the editor doesn’t pick up changes until you close and reopen it.
2. Check for System-Level Shortcut Conflicts
Lubuntu (and most Linux desktops) uses Alt+PageUp and Alt+PageDown for workspace/window switching by default. That’s probably overriding your Sublime keybinds. Here’s how to fix it:
- Open Lubuntu’s keyboard settings (look for "Keyboard Shortcuts" in the Preferences menu)
- Search for shortcuts using
Alt+PageUporAlt+PageDown - Either reassign those system shortcuts to a different combination, or pick a new keybind pair for Sublime (like
Ctrl+Shift+PageUpif that’s free)
3. Rule Out Plugin Conflicts
Some Sublime plugins might register the same Alt+PageUp/PageDown shortcuts, which would take priority over your user settings. To test this:
- Go to
Preferences > Package Settings > Package Control > Disable All Packages - Restart Sublime and try your shortcuts again. If they work, re-enable plugins one by one until you find the conflicting one, then adjust its keybinds or remove it.
You can also cross-check existing keybinds by opening Preferences > Key Bindings—this shows both default and user keybinds side by side. Search for alt+pageup to see if another command is using that combination.
4. (Optional) Update Sublime Text
Build 3083 is a bit dated, and while this keybind change should work in it, updating to the latest stable Sublime Text 3 build might resolve any hidden compatibility quirks. If you’re open to it, grabbing the latest version could help (though this is a last-resort step if the above fixes don’t work).
内容的提问来源于stack exchange,提问作者David Spira

