Copy:YY: Copy the line where the cursor is locatedNyy:n is a number, the copy cursor is in the down n line, for example, 20yy is copied 20 rowsY1G: Copy all data from the row to the first row of the cursorYG: Copy all data from the row to the last
My knowledge of vim is just a source code editor, used under Linux to edit the program source code or some service configuration files. Recently inadvertently seen in Vim can execute shell commands. The first time to see, to tell the truth feel good
They are multi-mode editor, the difference is that Vim is the upgrade version of VI, it is not only compatible with all VI directives, but also some new features inside.These advantages of vim are mainly reflected in the following aspects:1.
In the Ubuntu Docker image, the Nerdtree plugin is installed for vim, but the "+" should be displayed on the left side of the directory, but it becomes "? ~v" and the directory cannot be opened.Solution:Edit the Nerd_tree.vim file
Vim Basic IntroductionThe VI command is the most versatile full-screen plain text editor in Unix operating systems and UNIX-like operating systems. The VI editor in Linux is called Vim, which is the enhanced version of VI (VI improved), fully
Vim has a custom color scheme, syntax highlighting, linting and auto-fill capabilities.Vim is a very difficult-to-learn command-line editor (with a joke about vim: ask how to generate a bunch of true random numbers and a web developer to quit vim).
What is the difference between VI and VIM editor?A: The previous mention of VI and vim, but a lot of people like me will think of the difference between the two? Most of the early UNIX use of the VI editor, you can understand that the VIM editor is
A common sequence of events when editing files are to make a change and then need to test by executing the file you edited In a shell. If you're using VIM, you could suspend your session (CTRL-Z), and then run the command in your shell.That's a lot
Learn vim and it will be your last text editor to use. There's no better text editor, it's hard to learn, but it's incredibly easy to use.I suggest the following four steps:
Survive
Feel good
Feel better, stronger, faster
Use
Chown
Usage: chown [options] ... Owner [: [Group]] file ...Or: chown [options] ...--reference= reference file ...Change the owner and/or owning group for each file.When using--REFEREBCE parameter, change the owner and owning group of the file
Personal use a lot of IDE, also used a lot of editor, personal favorite gvim, its flexible operation feel and can be executed at any time the characteristics of batch processing let me put it down, but take vim when the IDE and always feel less what,
Minimum installation to see how it differs from the VI command. Experience is recorded later[[email protected] conf]# yum-y install vim loaded plugin: fastestmirrorbase | 3.6 KB 00:00:00extras | 3.4 KB 00:00:00updates | 3.4 KB 00:00:00: extras/7/x86
The Master boot record (master boot RECORD,MBR) is located on a hard disk with 0 cylinders, 0 disk faces, and 1 sectors, total 512 bytes. The specific divisions are: Boot code area 440 bytes, disk signature 4 bytes, white space (Ox0000) 2 bytes, MBR
1. Find/xxx (? xxx) means searching the entire document for a string matching xxx,/means looking down, representinglook up. where xxx can be a regular expression, about the formal type is not much to say.generally case-sensitive, if you want to be
Ubuntu vimrc settings are applicable to Ubuntu and Fedora systems. Other systems are not verified.
In ubuntu, the vim configuration file is stored in the/etc/Vim directory. The configuration file name is Ubuntu vimrc.
In fedora, the vim
When editing a Chinese text in vim, it sometimes looks garbled. I used to fix and complete the text without Garbled text. This problem has always plagued me. I suddenly thought of this problem, so I wanted to solve it. I checked it online for a long
Linux text editing tool vim and linuxvim
Vim has three modes: general mode, edit mode, and command mode.
* General mode:When you edit a file using vim filename, the normal mode is used when you enter the file.. In this mode, you can move the cursor
Vi and vim Editor (9): Global replacement (2)
The previous article has learned how to use the ": s" command in the vi editor to perform global replacement. In addition, you can use regular expressions in the replacement command to perform powerful
Automatically add comments in vim to add text information and vim commentsTo do well, you must first sharpen your tools. In the development process, a convenient and quick development environment can improve work efficiency. A beautiful interface
1. commands using regular expressions
The most common commands using regular expressions are: /(Search)Command. The format is as follows:
/Regular Expression
Another useful command is: S (replace)Command to replace the regular expression between the
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