, whether paste mode, direct text delivery! :"+pTo say vim registers, from the vim file between the copy and paste speaking.In vim, to copy the current line, press yy in normal mode and press p where you want to paste. This is why vim saved the copied content to its own regi
, whether paste mode, direct text delivery! :"+pTo say vim registers, from the vim file between the copy and paste speaking.In vim, to copy the current line, press yy in normal mode and press p where you want to paste. This is why vim saved the copied content to its own regi
in the nameless buffer, see YW
(B). The command is as follows: A-Z is a buffer, or it can be moved out of the number 1-9 specified delete buffer
A named buffer is a good way to save several text segments for later access, movement, or rearrangement. These buffers are named with A to Z letters! In order to access one of these buffers, use double quotation marks
For example, to insert a row into the a buffer, you can type:
"Ayy
In order to put this te
shortcut key to activate or cancel the paste mode. For example: set pastetoggle =
This reduces the usage of a shortcut key and makes it easier to use. But is this the most convenient? Vimer's pursuit of efficiency is endless. Are there other good methods? You may have thought of the vim register. Yes, use the vim register "+ p to paste it. You don't have to worry about automatic indent or
to paste it. You don't have to worry about automatic indent or paste mode. You can directly pass the original text! :
"+ P
To talk about the vim register, we should start with copying and pasting between Vim files.
In vim, to copy the current row, press YY in normal mode and P in the place to be pasted. This is why Vim saves the copied content to its own re
buffer zone (X is a-z). You can add numbers to indicate the number of words stored in the buffer. In the future, you can use P or P.RetrieveYY saves the current row to the unknown buffer. For usage, see YW(B). The command is as follows: A-Z is a buffer, and can also be removed from the buffer specified by number 1-9.The namebuffer can be used to store several text segments, making it easy to access, move, or rearrange text segments in the future. These buffers are named with
1. Vim Common copy and Paste commandVim's copy-paste command is undoubtedly y (Yank), p (paster), plus yy,pPs:Vim has a very interesting convention (I think it is a convention), that is, the case of a command is to achieve a certain function, but the direction is different, such as:W Jump to the next word,w: Jump to th
Vim-copy/paste
1. Vim internal clipboard
(1) use the default Clipboard ""Y → copy. You must specify a range, for example, YW.Y → equivalent to YY. Copy the current row.P → paste it behind the cursor.P → paste in front of the cur
"@", such:
$age=@{}
Operations similar to arrays are as follows:
Copy codeThe Code is as follows: Query
$ Age ["MaRui"]
Add (Note: assign values when adding values; otherwise, no new entries will be added)$ Age ["Ma"] = 24
Modify$ Age ["Ma"] = 25
Delete (Note: use parentheses)$ Age. remove ("Ma")
Clear hash table$ Age. clear ()
The content of this section is very simple. Thank you for taking the time to browse my blog!
After that, someone a
directories will not display colorFor example: We move the/etc/passwd/to the/tmp/, and then vim he will not show the color·Whether the vim color shows many aspects, such as the directory, suffix, etc.·VIM has its own configuration file, in/ETC/VIMRCUsers can configure their own vim:·Move cursor: H left, l or space right, J, KWe can also use the number plus the key to move the cursor, meaning to move a few letters in this direction.·····Vim General mo
Introduction to VimVim is an upgraded version of VI, more than the VI featuresVim when editing the file is color display, vi is no color displayThe default is no VIM installed, need to install Yum install-y vim-enhancedVim has three modes, namely General mode, edit mode, command modeGeneral mode: DD Delete command, yy copy command P paste command, etc.Edit mode: After I was the editing mode, you can change
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.