On 17:51 Mon 26 Mar , stardiviner wrote: > Sometimes I will forget which functional key do what in script map. > So I want a function to display all functional keys from F1 to F12. > The maps content can from command :verbose map <F1>. > Those content can be displayed in any style, like a new window, or same > buffer with :echomsg. > I just want to display those key binds detail at once. > I do not case how you archive this function. (maybe the the better the more > simple it is). > > Thanks guys. > -- > [stardiviner] <fuck you, world!> GPG key ID: 47C32433 > IRC(freeenode): Evanescence Twitter: @numbchild > Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 > http://stardiviner.dyndns-blog.com/author.html
Hi, Something like this might work for you: fun! ShowFuncKeys(bang) for i in range(1,12) exe (a:bang == "!" ? 'verbose' : '') . " map <F".i.">" endfor endfun com! -bang ShowFuncKeys :call ShowFuncKeys(<q-bang>) :ShowFuncKeys will show function keys ;) and :ShowFuncKeys will show where they were defined as well. Best, Marcin -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php