mirror of
https://github.com/preservim/vim-wordy.git
synced 2025-11-17 14:23:40 -05:00
Added completion list; deprecated many xWordy commands
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user