I met a weird problem: Vim is still in insert mode after executing the code below, it's weird because the redraw command did work.
:startinsert
execute 'silent !ls'
execute 'normal "\<esc>"'
:redraw!
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this community