1
0
Fork 0
mirror of synced 2024-06-02 23:41:09 -04:00
ultimate-vim/sources_non_forked/tlib/autoload/tlib/dictionary.vim

16 lines
373 B
VimL
Raw Normal View History

2015-12-08 08:20:04 -05:00
" @Author: Tom Link (mailto:micathom AT gmail com?subject=[vim])
" @Website: https://github.com/tomtom
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Last Change: 2015-10-14
" @Revision: 2
function! tlib#dictionary#Rev(dict) abort "{{{3
let rev = {}
for [m, f] in items(a:dict)
let rev[f] = m
endfor
return rev
endf