Added completion list; deprecated many xWordy commands

This commit is contained in:
Reed Esau
2014-08-07 03:22:03 -06:00
parent 40df90cec4
commit 8db14fd53e
3 changed files with 74 additions and 40 deletions

View File

@@ -89,4 +89,19 @@ function! wordy#jump(mode)
endif
endfunction
" Code from bairui@#vim.freenode
" https://gist.github.com/3322468
function! wordy#flatten(list)
let val = []
for elem in a:list
if type(elem) == type([])
call extend(val, wordy#flatten(elem))
else
call add(val, elem)
endif
unlet elem
endfor
return val
endfunction
" vim:ts=2:sw=2:sts=2