:help 'timeout'Ī problem with mapping a sequence like jj is that Vim will pause whenever you type j in insert mode (it is waiting for the next key to determine whether to apply the mapping). To generate Escape, jj has to be typed quickly. The :imap command is used to create the mapping so that it only applies while in insert mode (but see note about :inoremap below).įor example, the following allows you to press jj to exit from insert mode: (or jk, kj, etc) It can be convenient to use a mapping so that pressing a key, or sequence of keys, generates Escape. Thus using vim via a terminal gives you these short cut powers on any stock standard system without the need to edit each systems vim mappings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |