Below is the quickest, Plasma-native way to bind a key that will pop open a Konsole window and immediately drop you into Neovim.
(Everything is done with built-in KDE tools—no external hot-key daemons needed.)
1. (Optional, but tidy) Create a launcher file
This keeps things clean and also makes the command appear in Kickoff/KRunner.
mkdir -p ~/.local/share/applications
cat > ~/.local/share/applications/nvim-konsole.desktop <<'EOF'
[Desktop Entry]
Type=Application
Name=Neovim (Konsole)
Comment=Open Neovim in a Konsole window
Exec=konsole --noclose -e nvim %F
Icon=org.kde.konsole
Terminal=false
Categories=Utility;TextEditor;
EOF
• --noclose keeps the window open if you quit Neovim with an error.
• Omit %F if you never plan to pass files.
You can now run this entry from KRunner (Alt+Space, type Neovim (Konsole)), but the real goal is a shortcut.
2. Assign the global shortcut
- System Settings ➜ Shortcuts ➜ Custom Shortcuts (or “Custom” in Plasma 6).
- Click Add ➜ Application and pick Neovim (Konsole) (the desktop file you just made).
• If you skipped step 1, choose Add ➜ Command/URL and paste the command
konsole --noclose -e nvim.
- In the pane on the right, open the Trigger tab, press None, and hit your favourite key combo (e.g.
Meta+N or Ctrl+Alt+V).
• KDE will warn you if the combo is already taken; pick another if needed.
- Hit Apply.
Done! Press your new combo anywhere, and a Konsole window with Neovim appears.
3. Tweaks (optional)
Shortcut only if no Konsole is already running?
Exec=konsole --new-tab -p tabtitle="NVIM" -e nvim %F
Using --new-tab opens a tab in the current Konsole instance instead of a new window.
Different colour scheme / profile just for Neovim?
Exec=konsole --profile nvim -e nvim %F
Make a Konsole profile called nvim with your preferred colours.
4. Troubleshooting
• Shortcut does nothing → Double-check nvim is in PATH. Try which nvim.
• Starts then disappears → Drop --noclose to inspect the error message.
• Key combo launches something else → It’s already mapped; search Shortcuts ➜ Global Shortcuts to unbind the clash.
That’s it—enjoy one-keystroke Neovim! 🎉
(If you’d like something fancier—like re-using an existing Konsole tab or passing the currently selected file—just let me know.)