{"action":"closed","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/2733","labels_url":"https://api.github.com/repos/neovim/neovim/issues/2733/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/2733/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/2733/events","html_url":"https://github.com/neovim/neovim/issues/2733","id":80173507,"number":2733,"title":"Insert in the wrong pane when involving navigation between views","user":{"login":"bohrshaw","id":1585463,"avatar_url":"https://avatars.githubusercontent.com/u/1585463?v=3","gravatar_id":"","url":"https://api.github.com/users/bohrshaw","html_url":"https://github.com/bohrshaw","followers_url":"https://api.github.com/users/bohrshaw/followers","following_url":"https://api.github.com/users/bohrshaw/following{/other_user}","gists_url":"https://api.github.com/users/bohrshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/bohrshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bohrshaw/subscriptions","organizations_url":"https://api.github.com/users/bohrshaw/orgs","repos_url":"https://api.github.com/users/bohrshaw/repos","events_url":"https://api.github.com/users/bohrshaw/events{/privacy}","received_events_url":"https://api.github.com/users/bohrshaw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-24T14:16:09Z","updated_at":"2015-06-11T13:25:25Z","closed_at":"2015-06-11T13:25:25Z","body":"With two panes side by side in the current window, cursor on the left one, issue command `startinsert | wincmd w`, surprisingly the right pane is now in insert mode. (Same if `startinsert` is replaced by `call feedkeys('i')`.)\r\n\r\nThis also happens within the context of an auto-command like `autocmd BufWinEnter,WinEnter term://* startinsert`, when a command like `wincmd w | wincmd W` is executed in a *proper* pane layout.\r\n\r\nI encountered this issue when trying to put any terminal buffer in insert mode whenever I switch to it. And I'm unsure if this is the proper behavior of (n)vim and need help to solve my actual problem in a robust way.\r\n\r\nPS: The newly-introduced terminal buffer(when used as a shell) seems to be an exception of vim's \"normal mode as default mode\", which is trouble-anticipated."}}