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.
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/
Post Details
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/vim/comment...