Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

8
How can I close a "Press ENTER or (...)" prompt with <Tab>?
Post Body

I'm using ALE and have mapped <Tab> in normal mode to display a more detailed message on a warning/error (nmap <Tab> <Plug>(ale_detail)). This pops up in a new window with a "Press ENTER or type command to continue", and I would like to close it with <Tab> too. That doesn't seem to work, however, since only enter/space redraw the window.

I tried using a map expression to conditionally map <Tab> to <CR>, but I'm not sure how I can check if the cursor is in a window like that. I tried pumvisible(), but I suppose it's not a "pop-up menu" because that didn't work.

Any suggestions for how I can do this?

Update: This worked https://www.reddit.com/r/vim/comments/6m6ccw/how_can_i_close_a_press_enter_or_prompt_with_tab/dk03z3s/

Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,104
Link Karma
2,319
Comment Karma
2,367
Profile updated: 3 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago