vim: make it possible to replace NM_cobine_tags()

This commit is contained in:
Bart Trojanowski 2009-11-27 13:06:46 -05:00
parent efa9df2d49
commit d1eb2c6ce5

View file

@ -1213,7 +1213,7 @@ endfunction
" example: " example:
" NM_combine_tags('tag:', ['one', 'two', 'three'], 'OR', '()') " NM_combine_tags('tag:', ['one', 'two', 'three'], 'OR', '()')
" -> ['(', 'tag:one', 'OR', 'tag:two', 'OR', 'tag:three', ')'] " -> ['(', 'tag:one', 'OR', 'tag:two', 'OR', 'tag:three', ')']
function s:NM_combine_tags(word_prefix, words, separator, brackets) function! s:NM_combine_tags(word_prefix, words, separator, brackets)
let res = [] let res = []
for word in a:words for word in a:words
if len(res) && strlen(a:separator) if len(res) && strlen(a:separator)