Knowledge of Vim, code Editor [0], Vim/gvim

Source: Internet
Author: User

Related knowledge /relevant knowledge

1 _VIMRC Programming /_VIMRC Program

1. Annotation ", for comment

2. Keyword set, for setting functions, etc.

3. Keyword IMAP, which indicates a re-map in insert mode

4. Keyword Inoremap, indicating the re-map in insert mode:

Inoreremap HL <esc> indicates that ESC keys are re-map to h+l in insert mode

Inoremap <A-j> <enter>, indicates that enter is re-map into alt+j in insert mode

5. Keyword Nnoremap, indicating a re-map in normal mode

6. Phase Key table:

Name

corresponding keys

Name

corresponding keys

<A-j>

Alt+j

<esc>

Esc

<C-k>

Ctrl+k

<enter>

Enter

<S-l>

Shift+l

<delete>

Delete

<backspace>

Backspace

2 Backup Files /Backup Files

There are several kinds of backups in vim,

    1. Undofile, stored in the. un~ file, for the next time you enter Vim can still continue the last record to undo operation, the setting set Noundofile cancel;
    2. backupfile, stored in the same name file + ~, for vim backup file, set Nobackup can be used to cancel
    3. Swapfile, stored in the SWP file, generated during abnormal exit, normal exit Delete, can be canceled with set Noswapfile.

Knowledge of Vim, code Editor [0], Vim/gvim

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.