Re: Use both mcedit and vim as mc editors from keyboard shortcuts
Andrew Borodin via mc <[email protected]> Sat, 03 Jun 2023 21:07:43 +0300
| Newsgroups | gmane.comp.gnome.apps.mc.general |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 03 Jun 2023 20:16:23 +0300 Nikolay Shaplov via mc <[email protected]> wrote: > В письме от суббота, 3 июня 2023 г. 12:30:03 MSK пользователь Yury V. Zaytsev написал: > > >> and bind the EditForceInternal to the desired shortcut. > > > > > > 1. can you please point me how to do this (or what to read to learn how to > > > do that)? > > > > man mc "Redefine hotkey bindings" > In /etc/mc/mc.keymap, in [panel] section I've commented out > > #EditNew = f14 > > and added to the [filemanager] section > > EditForceInternal = f14 > > But this did not changed existing behaviour. I still get vim with new empty > file when I press Shift+F4. > > I also tried other key combinations with same result. > > What I am doing wrong, and how to troubleshoot it? Instead of modifying system-wide key map, you can rebind keys in your ~/.config/mc/mc.keymap file. In your case: Note: since EditNew is bound in /etc/mc/mc.keymap, you should unbind it in ~/.config/mc/mc.keymap. ========================================== $ cat ~/.config/mc/mc.keymap [filemanager] EditForceInternal = f14 [panel] EditNew = ========================================== After changing keymap, you must restart mc. -- Andrew -- mc mailing list [email protected] https://lists.midnight-commander.org/mailman/listinfo/mc