当前位置:网站首页>VI and VIM commands
VI and VIM commands
2022-07-28 06:29:00 【Strange patron saint】
vi command
Ctrl+u: Turn the document half screen first ; Ctrl+d: Turn half the screen to the end of the document ; Ctrl+f: Flip to the end of the file ; Ctrl+b: Turn to the first screen of the document ; Esc: Switch from edit mode to command mode ; ZZ: Save the changes made to the current file in command mode and exit vi; : Line number : The cursor jumps to the beginning of the specified line ; :$: The cursor jumps to the beginning of the last line ; x or X: Delete a character ,x Delete... After cursor , and X Delete... Before cursor ; D: Delete all characters from the current cursor to the end of the line where the cursor is ; dd: Delete the positive line of cursor line ; ndd: Delete the current line and after n-1 That's ok ; nyy: Put the current line and below n The contents of the line are saved to the register ? in , among ? For a letter ,n Is a number ; p: Paste text operation , Used to paste the contents of the cache area below the current cursor position ; P: Paste text operation , Used to paste the contents of the cache above the current cursor position ; / character string : Text search operations , Used to find the content of the specified string from the end of the file starting from the current cursor position , The search string will be highlighted ; ?name: Text search operations , Used to find the content of the specified string from the current cursor position to the file header , The search string will be highlighted ; a,bs/F/T: Replace text operation , Used in a Go to the first place b Between the lines , take F Replace the string with T character string . among ,“s/” Indicates a replacement operation ; a: Add text... After the current character ; A: Add text at the end of the line ; i: Insert text before current character ; I: Insert text at the beginning of the line ; o: Insert a blank line after the current line ; O: Insert a blank line before the current line ; :wq: In command mode , Perform save exit operation ; :w: In command mode , Perform save operation ; :w!: In command mode , Perform forced save operation ; :q: In command mode , Execute exit vi operation ; :q!: In command mode , To enforce a compulsory exit vi operation ; :e file name : In command mode , Open and edit the file with the specified name ; :n: In command mode , If you open multiple files at the same time , Then continue to edit the next file ; :f: In command mode , Used to display the current filename 、 The line number and display scale of the line where the cursor is located ; :set number: In command mode , Used to display the line number... At the far left ; :set nonumber: In command mode , Used to not show line numbers at the far left ;
vim command

边栏推荐
- Triode design, understanding saturation, linear region and cut-off region
- Photovoltaic power generation system MPPT maximum power point tracking
- Learning notes on hardware circuit design 2 -- step-down power circuit
- Talk about the "hybrid mode" of esxi virtual switch and port group
- Machine learning note 5 - logistic regression
- CLIP Learning Transferable Visual Models From Natural Language Supervision
- 多个ics日历合并成单个ics日历
- PyTorch 学习笔记 2 —— About Tensor
- Perl introductory learning (VIII) subroutine
- 初学者进行传感器选型
猜你喜欢

Learning notes of hardware circuit design 1 -- temperature rise design

USB network native driver for esxi updated to support esxi7.0.1

ICC2(一)Preparing the Design

Briefly introduce EMD decomposition, Hilbert transform and spectral method

Beginners choose sensors

Efficient Net_ V2

T-sne dimension reduction visualization

Machine learning note 5 - logistic regression

set_ clock_ groups

set_case_analysis
随机推荐
set_ false_ path
Precautions for EMI design of switching power supply circuit in layout process
Selection of PLC
ICC2分析时序的神器 analyze_design_violations
Pytorch learning notes
How can fluke dsx2-5000 and dsx2-8000 modules find the calibration expiration date?
Synopsys Multivoltage Flow
PT physical aware based on multi voltage
Beta distribution (probability of probability)
BERT基于transformer的双向编码器
PyTorch 学习笔记 3 —— DATASETS & DATALOADERS & TRANSFORMS
Vs code basic configuration and beautification
雷达成像 Matlab 仿真 4 —— 距离分辨率分析
Measure computer battery capacity
Detailed explanation of word mail merge function: after merging, multiple word documents are generated and blank pages are deleted
解决内存占用比应用进程占用高的问题
【服务器使用记录】通过跳板机登录远程服务器并进行文件传输
Shuffle Net_ v1-shuffle_ v2
Matlab simulation of radar imaging 1 - LFM signal and its spectrum
Web scrolling subtitles (marquee example)