Linux applications: Vim key Mapping

Source: Internet
Author: User
Tags imap

1. Common mapping Setting method

": Combination of actions performed by map map key combination": Set key mapping

": Noremap the characters in the map key combination mapping Key": Cancels nested mappings for a character

": Unmap Map key combination": Cancel key Mapping

": Mapclear": Cancel All Mappings

": Map": View all Mappings

* Note: The map key combination can be a character, or it can be a combination of lock characters
The action performed can be a combination of a series of actions

2. Key mapping mode

Map Noremap unmap mapclear Map Normal, visual, operator wait mode
Vmap vnoremap vunmap vmapclear vmap Visual mode
Nmap nnoremap nunmap nmapclear nmap Normal mode
Omap Onoremap ounmap omapclear omap operator wait mode
map! noremap! unmap! mapclear!   map! Insert and command line mode
IMAP INOREMAP IUNMAP imapclear IMAP insert mode
CMap cnoremap cunmap cmapclear cmap command line mode

* Note 1: operator wait mode after pressing an operator, VIM expects you to type
When the next action command or object
* NOTE 2: In the case of no conflict, the same mapping key can be mapped in different modes
into a different content


3. Recursive mapping

When the map key combination of the operation contains itself, it will be recursive operation until the operation error or ctrl-c interrupt

4. Mapping Command Segmentation

| The subsequent command is not a mapped operation but the next command

5. Invalidates the key

Map keys to "<Nop>" (no space behind), press the key to do nothing

Linux applications: Vim key Mapping

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.