Wenn Sie eine sortierte, durchsuchbare Liste Ihrer aktuellen Zuordnungen wollen, in denen für nicht genutzte Schlüssel zu suchen, können Sie folgendes tun:
function! s:ShowMaps()
let old_reg = getreg("a") " save the current content of register a
let old_reg_type = getregtype("a") " save the type of the register as well
try
redir @a " redirect output to register a
" Get the list of all key mappings silently, satisfy "Press ENTER to continue"
silent map | call feedkeys("\<CR>")
redir END " end output redirection
vnew " new buffer in vertical window
put a " put content of register
" Sort on 4th character column which is the key(s)
%!sort -k1.4,1.4
finally " Execute even if exception is raised
call setreg("a", old_reg, old_reg_type) " restore register a
endtry
endfunction
com! ShowMaps call s:ShowMaps() " Enable :ShowMaps to call the function
nnoremap \m :ShowMaps<CR> " Map keys to call the function
Dies ist eine robuste Funktion zum Erstellen einer vertikalen Teilung mit der sortierten Ausgabe von :maps
. Ich lege es in meine .
Die letzte Zeile ordnet die beiden Tasten \m die Funktion aufrufen, dies ändern, wie Sie möchten.
Hinweis: Wie @romainl erwähnt, wird dies keine Befehle wie umfassen i Text einfügen
Diese Antwort kann helfen http://stackoverflow.com/a/5391019/32090 –
': help index' scheint gut, aber es zeigt nicht meine Plugins Shortcuts. – daniloisr