Vim commands and vim commands
1. About Vim
Vim is my favorite editor and the second most powerful editor in Linux. Although emacs is recognized as the world's No. 1, I think it is more efficient to use emacs without using vi for e
Linux vim commands and linux vim commands
A detailed introduction of vim commands in linux.
Some advanced editors will contain macro functions, which are certainly not missing in vim. I
Common vim commands, vim
Vimm (vimsual) is a full-screen editor used in Linux/unix OS.
Vimm is divided into two states: command status and edit status. In command status, the entered character system performs command processing. For example, q indicates that the system exits, the editing status is used to edit text materials. When you enter
Linux learning notes-Explanation of Vim operation commands and learning notes-vim
Linux Study Notes-Vim operations
1. Vim Introduction
Vim is a powerful full-screen text editor,
Is the most common text editor on Linux/UNIX,
It is
Mastering the common commands of the Vim editor can greatly improve the efficiency of our text editing. Basic Operations
When we first contacted the Vim editor, we learned some of the following things:
Just enter the Vim editor, we are in Normal mode , press I on the keyboard, we enter the insertion mode . In insert mo
Common vim commands, vim
VIM is generally divided into several modes to distinguish whether the input is a text or a command through different modes:1. Normal mode (common mode, c-mode ):Once you enter VIM, it is in c-mode. You can only enter
[Craftsman Avenue] Some Vim commands that are not common but very powerful (constantly updating), vim constantly updating
Common vim commands such as moving and editing are not described in detail. Here, we will mainly record some uncommon but very powerful
Vim basic operations and vim basic commands
Copy y
Paste p
Cut d
When the row processes yy (copy row), dd (cut row)
Multi-row processing nyy (copying multiple rows) and ndd (cutting multiple rows)
Line paste when row copy is used
Partial row pasting when using region Replication
Intra-row processing y ^ (copying from the cursor
#删除光标所在行到最后一行的所有数据d$ or D #删除光标所在处到该行最后一个字符的所有数据D0 #删除光标所在处到该行第一个字符的所有数据DW #删除光标所在处到当前单词的最后一个字符的所有数据Copy Action y:yy or y #复制光标所在的那一整行, and copies the contents to the Clipboard.Yng #复制光标所在行到第N行的所有数据YG #复制光标所在行到最后一行的所有数据y$ #复制光标所在处到该行最后一个字符的所有数据Y0 #复制光标所在处到该行第一个字符的所有数据 Paste:P,p #P在光标之前粘贴, P is pasted after the cursorIndent:>> indent one shiftwidth to the right=-> #自动缩进光标所在行Resources:1. "Brother Bird's Linux private cuisine"2.http://blog.csdn.net/donahue_ldz/article/details/17139361http://detail
This disk describes some of the most commonly used commands for Linux environments, including commands for SVN version control and vim editing commands. This article is original, if need reprint, please famous source: http://blog.csdn.net/qq_223274551. Directory Jump: CD2. View: LL ls3. Connect server: SSH user name @i
Tags: dir directory esc body ACK BSP Primary directory page common commandsBecause very little command line, old despised, so today record a common command line:CD Switch working directory. Represents the current directory.. Represents the top-level directory of the current directory/root directory/directory separator./Current Directory.. /go to the top level directoryLS Displays the current directory so the filemkdir Creating a new directoryRmDir Delete Empty directory, note is empty directoryV
of the file in reverse orderVim Common Command DaquanESC: Exit Edit modeCTRL-T: Move to next tabBackspace: Move backward one characterCtrl-u: Delete the currentCW: Delete the character of the cursor and enter edit modeCC: Delete the row where the cursor is located and enter edit modeC: Remove the character from the cursor's location to the end of the line and enter edit modeDD: Delete When moving forwardNDD: Delete the nth rowD: Delete the character following the position of the current row cur
Vim the mode and transformation relationship 1 is shown. A simple introduction to command patterns and common commands for extended mode. 650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9D/C4/wKioL1mFjIHAnfyFAAC6xpPfTZI075.png "title=" a.png "Width=" "height=" 242 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:400px;height:242px; "alt=" Wkiol1mfjihanfyfaac6xppftzi075.png "/>Figure 1Command m
(with?) to continue looking until you find it.For the first use VI, there are a few notes to remind:1. When you open a file with VI, you are in command mode, and you want to switch to insert mode to enter text. Toggle method: Click on the letter "i" "Command mode" to enter "Insert Mode", then you can start to enter the text.2, after editing, you need to switch from insert mode to command line mode in order to save the file, switch method: Press the "esc" key.3. Save and exit the file: Enter in
CD Switch working directory. Represents the current directory.. Represents the top-level directory of the current directory/root directory/directory separator./Current Directory.. /go to the top level directoryLS Displays the current directory so the filemkdir Creating a new directoryRmDir Delete Empty directory, note is empty directoryVim xx open xx file, if not created xx file, and pick to edit pageI just entered the editing page is not editable, so I can edit the inputESC will exit edit mode
Common vi/vim commands and common vivim commandsWorking Mode
INSERT command
A attaches text behind the cursor
A adds text at the end of the line
I insert before the cursor
I insert text at the beginning of the line
O Insert a new row under the cursor
O Insert a new line to the cursorLocating command
H move one character to the left/the arrow to the left
J. Move down one row/down arrow
K move up one row/Up
The shortcut key combinations that are often used in vim:Normal Mode:Ctrl F turn to the next page Ctrl B turn to previous page/search keyword n look down n findWith a single word selected, press to select N to find n up^ Jump to the beginning of the line to jump to the endG jumps to the end of the line GG jumps to the beginningEdit command:Insert a new line under the O-cursorO-Cursor Insert a new line aboveShortcut key combinations that are commonly used on the command line:CTRL + A cursor moves
Share some very useful Vim commands
Specifically, I am a fan of Vim. So before some of you throw stones at me, I will first show you a series of "Little-known Vim commands ". I mean, some commands that you may not have encountered
Command history
Commands with: and/start with history, you can first type: or/And then press the up and down arrows to select a history command.
Start vim
Enter the following command in the Command line window
Vim starts vim directly
Vim filename opens
the cursor;U restore the previous operation;Ctrl+r redo the previous operation;Vim b.txt new file;I enter the edit mode ("Insert" in the lower left corner);ESC exits edit mode;: w Save the edited data;: Q Exits.: Wq save exit.: q! Modified files, do not want to store, forced to leave without saving the file.A. Linux common Commandsmkdir dirname New FolderCD ~ Go to your home directoryCD dirname into the directory named dirname;• Displays the file an
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.