From a90493769d31bf74621e0b6b963a22ce737f033a Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 27 Jul 2026 23:22:50 +0200 Subject: [PATCH] /etc/vim/source/map.vim --- etc/vim/source/map.vim | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/etc/vim/source/map.vim b/etc/vim/source/map.vim index 8b264a2d..998cbde9 100644 --- a/etc/vim/source/map.vim +++ b/etc/vim/source/map.vim @@ -20,6 +20,16 @@ func!MapHelpAdd(key,lib) endif endfor call add(g:MapHelp,[a:key,a:lib]) + + let matches = matchlist(a:key, '\vAlt\+(\a)') + if len(matches) > 1 + for m in matches[1:] " m is the captured letter + if !empty(m) + " NB 27.07.26 echo m a:key + execute "set =\e".m + endif + endfor + endif endfunc func!_MapHelpSort(x,y) @@ -165,9 +175,9 @@ map :bp """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " F1 - Last Cmd -call MapHelpAdd('F1, Alt+x','Last shell command executed') -map :! -map x :! +call MapHelpAdd('F1, Alt+x','Last command executed') +map : +map x : """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " F2 - Script, formated text verification -- 2.47.3