Tips & Tricks


Fix terminal timeout when pressing escape

When you’re pressing Escape to leave insert mode in the terminal, it will by default take a second or another keystroke to leave insert mode completely and update the statusline. If you find this annoying, you can add the following snippet to your vimrc to escape insert mode immediately:

if ! has('gui_running')
    set ttimeoutlen=10
    augroup FastEscape
        au InsertEnter * set timeoutlen=0
        au InsertLeave * set timeoutlen=1000
    augroup END

Useful settings

You may find the following vim settings useful when using the Powerline statusline:

set laststatus=2 " Always display the statusline in all windows
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline)

Table Of Contents

Previous topic


Next topic

Font patching

This Page