In insert mode, to reduce repetitive keystroke input, VIM provides a number of shortcuts, and when you enter a string that has been entered in a context, you just enter the first few characters, use the shortcut key, VIM will search the context,
Turn from: http://www.lupaworld.com/?uid-296380-action-viewspace-itemid-118973
Vi/vim Basic Use MethodThis article introduced the VI (VIM) basic use method, but for the ordinary user is basically enough. I/vim the difference is simple, they are
The VI editor has 3 modes: Command mode, input mode, and last line mode. It is important to master these three modes: the Command mode: The default entry is the command mode after startup, the command can be switched from this mode to the other
Transferred from: http://os.51cto.com/art/201507/484174.htmVim is a versatile, lightweight text editing tool on Linux. Although it is quite difficult for ordinary Linux users to start learning, it is worth learning because of the benefits. As for
By default, Vim uses a built-in register instead of an X Window's clipboard
Enable system Clipboard SupportYou can use vim --version | grep clipboard the view, if the Clipboard is displayed before the tag, - but not + the marker, indicating that
Reprinted from Https://www.jetbrains.com/help/idea/using-intellij-idea-as-the-vim-editor.htmlThis feature was only supported in the Ultimate edition.The following is only valid when Ideavim Plugin is installed and enabled!Before you startMake sure:
5.5-5.7 use and expansion of vim
Settings for VIMThe difference between ": Wq" and ": X"
": Wq" Mandatory write file and exit (save and exit write and quite). Force write even if the file is not modified, and update the file's
Refer to the VIM regular expressionA comparison with the previous Linux shell regular expression (bres,eres,pres) can be combined to seeThe regular expressions in VIM are powerful and can do a lot of unthinkable things if they are free to use.I.
Vim Learning Note I, Mark (Mark)We can mark the text so that it is easy to jump between different locations in the document.Create tagsMoves the cursor to a line and marks it with a ma command. Where m is the tag command, anda is the name of the tag
I was learning how to use Vim. I wanted to learn Linux for a while and then suddenly found that Vim is a good thing to learn and use. Today I found that, you cannot use Ctrl + C/Ctrl + V to copy and paste data with other applications in the system.
No, when you get used to vim and bring fun to your programming, you will enjoy it more and more!
In the past, when we started using vim, the mouse in VIM didn't provide the same functionality as other editors, and we couldn't control the cursor
I have been in touch with Linux for several years. I feel that Linux has been separated by minutes and is full of regrets. One of the biggest regrets is that I have never been proficient in Vim, it cannot fully adapt to Code development under vim.
Vim's learning curve is quite large (see the learning curve of various text editors). Therefore, if you see a lot of VIM command classification at the beginning, you will lose interest in this editor. The following article is translated from "Learn
You can learn Vim step by step based on the solution example-the following comments are drunk and explained by yourself based on the illustration and your own practices. The capabilities are limited and errors are incorrect. you can remind me to
1. Substitute)
: [Range] S/pattern/string/[C, E, G, I] 5. 1
Range
It refers to zookeeper. 1, 7 refers to the entire article from the first row to the seventh row, and 1, $ refers to the entire article from the first row to the last
Method 1:Place the cursor in Row 3,Input: 2yyPlace the cursor in Row 3,Input: PThis method is suitable for copying a small number of lines of text. Copy two rows of data under 6th rows (inclusive) and put them under 9th rows.Method 2:Input in
Replacement of strings in Linux batch files
Sed-I "s/oldstring/newstring/g" 'grep oldstring-rl Path'
Vim multiline replacement:: L1, l2s/str1/str2/g only Replace "str1" in line L1 to line l2 In the file with "str2"
: S/Vivian/sky/Replace the
Original article address: Two good Vim skillsAuthor: Liurhyme
Note the following before reading this article:1. The goal of this article is to provide some Vim usage skills, which can improve the efficiency of VIM operations. Some tips can also be
1. The directory tree is the same
The source code 6.0 and 6.2 usually have the same directory tree structure. For example, all files exist.
Sys/i386/i386/machdep. c, and all of them have the init386 function.
If we want to compare the differences
[Glossary]
In this article, the character sequences that can cause actions in vim are collectively referred to as "commands", which not only include commands starting with: In command line mode, but also key sequences in other modes.
Note]
As vim is
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