mirror of
https://github.com/powerline/powerline.git
synced 2025-07-28 08:14:41 +02:00
parent
8b8de32be9
commit
4e4a2b2ef8
@ -9,6 +9,7 @@ Powerline
|
|||||||
introduction
|
introduction
|
||||||
overview
|
overview
|
||||||
configuration
|
configuration
|
||||||
|
tipstricks
|
||||||
fontpatching
|
fontpatching
|
||||||
license-credits
|
license-credits
|
||||||
|
|
||||||
|
37
docs/source/tipstricks.rst
Normal file
37
docs/source/tipstricks.rst
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
*************
|
||||||
|
Tips & Tricks
|
||||||
|
*************
|
||||||
|
|
||||||
|
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
|
||||||
|
---------------
|
||||||
|
|
||||||
|
You may find the following vim settings useful when using the Powerline
|
||||||
|
statusline:
|
||||||
|
|
||||||
|
.. code-block:: vim
|
||||||
|
|
||||||
|
set laststatus=2 " Always display the statusline in all windows
|
||||||
|
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline)
|
Loading…
x
Reference in New Issue
Block a user