mirror of
https://github.com/powerline/powerline.git
synced 2025-07-28 00:04:39 +02:00
parent
cbcfd317a6
commit
b6be30470b
@ -5,26 +5,6 @@ Tips and tricks
|
|||||||
Vim
|
Vim
|
||||||
===
|
===
|
||||||
|
|
||||||
Fix terminal timeout when pressing escape
|
|
||||||
-----------------------------------------
|
|
||||||
|
|
||||||
When you're pressing :kbd:`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 :file:`vimrc` to escape insert mode
|
|
||||||
immediately:
|
|
||||||
|
|
||||||
.. code-block:: vim
|
|
||||||
|
|
||||||
if ! has('gui_running')
|
|
||||||
set ttimeoutlen=10
|
|
||||||
augroup FastEscape
|
|
||||||
autocmd!
|
|
||||||
au InsertEnter * set timeoutlen=0
|
|
||||||
au InsertLeave * set timeoutlen=1000
|
|
||||||
augroup END
|
|
||||||
endif
|
|
||||||
|
|
||||||
Useful settings
|
Useful settings
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user