2

In this wikia tip I found set complete+=k and set complete+=t. I applied both but only the first one worked.

My question is what is the difference between these?

1 Answer 1

6

From :h 'complete':

k   scan the files given with the 'dictionary' option
]   tag completion
t   same as "]"

The tag k allows you to specify a file containing some words you want to use for completion. The tag t is used to complete tags generated by a program like exuberant Ctags or cscope. For more details about tags see :h tag.

When you used set complete+=t it's not that it didn't work it is that you probably didn't generate a tag file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.