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,
- 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;
- backupfile, stored in the same name file + ~, for vim backup file, set Nobackup can be used to cancel
- 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