From: Nicolas Boisselier Date: Mon, 27 Jul 2026 21:22:50 +0000 (+0200) Subject: /etc/vim/source/map.vim X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a90493769d31bf74621e0b6b963a22ce737f033a;p=nb.git /etc/vim/source/map.vim --- 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