Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would one configure the Taglist plugin to automatically close the Tagslist window after clicking on a tag? I keep the Tlist window closed due to space (my monitor stands upright, in portrait orientation) and only open it when I need to move to a tag.

This is in VIM 7.3. Thanks!

share|improve this question
up vote 3 down vote accepted

From the taglist docs:

Tlist_Close_On_Select - Close taglist window when a selection is made.

Defaults to 0 (zero), off, which doesn't close the taglist window.

let Tlist_Close_On_Select = 1

in your .vimrc will cause the taglist window to be closed after you choose.

:help taglist.txt

Will bring up the taglist docs, look at section 6, options.

share|improve this answer
Beat me by 7 seconds! Congrats on finding the answer. – lornix Jul 22 '13 at 9:55
Even if you beat me I'd still rather give the 'accepted answer' to you. Thanks! – dotancohen Jul 22 '13 at 10:32

That's explicitly documented in the plugin's help; see :help taglist-using:

To automatically close the taglist window when a tag or file is selected, you can set the 'Tlist_Close_On_Select' variable to 1. To exit Vim when only the taglist window is present, set the 'Tlist_Exit_OnlyWindow' variable to 1.

share|improve this answer
Thanks Ingo. I happened to find it just a few minutes after asking right on the plugin's homepage! – dotancohen Jul 22 '13 at 10:33

Found it! Add this to .vimrc:

let Tlist_Close_On_Select = 1

I am leaving the question here for the next time I need this, as Google did not help me find this the first time.

share|improve this answer
Don't just rely on Google for plugin config. Most (good) plugins ship with dedicated help pages that rival the excellent built-in help. – Ingo Karkat Jul 22 '13 at 9:57
You are right. I've been spoiled by Google and instant-answers for the past few years. – dotancohen Jul 22 '13 at 10:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .