this post was submitted on 27 Dec 2023
152 points (75.3% liked)
linuxmemes
20880 readers
6 users here now
I use Arch btw
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules
- Follow the site-wide rules and code of conduct
- Be civil
- Post Linux-related content
- No recent reposts
Please report posts and comments that break these rules!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Lol if you know how to exit, you may know that you actually can change almost everything about vim.
I don't think you can add modifier keys in shortcuts.
And this behavior should come out of the box, not me changing stuff around so I can make it usable. For something that I use all the time, sure, but I only use a terminal text editor with git, and I don't use git that often. For everything else, I use a GUI text editor (mousepad, leafpad, whatever).
nnoremap <C-q> :q<CR>
This works for me to bind control+q to quit.
edit: easier to upload an image because lemmy is eating the "html" characters
Hm, will try that. If it works, I'm buying you a beer 🍺.
You can set which editor to use with git using the GIT_EDITOR environment variable instead of telling other people their editor isn't usable by your standards.
Yes, I know, and I have it set to nano, but even then, I don't use nano that much anyway, I do most edits in a GUI text editor.