Vi/vim Key DescriptionIn addition to the simple example above I, ESC,: Wq, in fact, Vim has a lot of keys can be used.Part I: General mode available cursor movement, copy and paste, search and replace, etc.
How to move the cursor
Through the previous blog we finally ended the introduction of common Linux commands, Linux commonly used commands mainly include the following:①, Linux file and directory processing commands②, Linux link commands, and Rights management commands③,
A text editor is used to create or modify a text file. Three modes of Operation: Command mode-->> edit mode--->> command line mode. mode switch: enter file --Command mode appears insert --edit mode input:
Vim Select text, delete, copy, pasteThe selection of text, for the editor, is a very basic thing, also often used, summarized as follows:V starts at the current position of the cursor, where the cursor is selected, and then ends with a click of v.V
I often use VI editor, but basically still the habit of windows, no system to learn its function, today encountered a copy of the text there is no way to see the solution as follows:Reference text:-----------------------------------------------------
Vim use commandAuto-complete operation
Ctrl + N/ctrl + P Auto complement string
CTRL +x CTRL +F Auto-complete file name
"Multi-file operation"To open multiple files:
Vim file1 file2 ... filen open all the files you want to
Now it is very important to say Vim,vim, but we have a lot of people to pay attention to the high technology, but when using vim to edit the file, the efficiency is not high. Vim is very important, I said below, is often used, simple things, I hope
You can use the: s command to replace a string in Vi/vim. The command has a number of different details of how to use the method, you can implement complex functions, record several here, convenient later query. : s/vivian/sky/replaces the current
1, summarize the text editing tool vim use method;2, summarize the document Search command find use method;3, summarize the content of bash environment variable;4. Summarize the knowledge points of special permissions (SUID, SGID, Sticky) on Linux
1, play open new Mark sign page start Vim with "vim -p filename  ...": Tabe[dit] :tabnew opens a new tab with an empty window after the current tab page. :tabe[dit] [++opt] [+cmd] :tabnew [
One, the commonly used VIM commandThis is a simple record of commonly used commands, followed by commands that you record, but some may not be used.1 General mode:2 3 4 5 GG jump to file header6 Shift+g Jump to end of file7Number of rows +GG jumps
Everyone crossing, welcome to listen to the large-scale couplet science fiction: Vim. Last time we introduced the TagList in vim.Plug - ins.. This time, let's continue to talk about Vim's plugin, but we're talking about another plugin: Nerdtree.
Vim related knowledge accumulation, continuous update.Common Operation General Mode
n1,n2s/word1/word2/gN1 row and N2 between the lines to find Word1, replaced by Word2
1,$s/word1/word2/gFirst line to last line find Word1, replace with
Happy Shrimphttp://blog.csdn.net/lights_joy/(QQ group: Visual embedlinux Tools 375515651)Welcome reprint, but please keep the author informationThis article applies only to vs2013 + velt-0.1.3 1.1 What is velt Veltthe full name isVisual
The most common use of the editor under Linux is vim or vi text editing. The difference between VI and Vim editor is that VIM is an improved version of VI, and it expands a lot of useful functions on the basis of VI editor. in most Linux/unix
You can use the: s command to replace a string in http://wzgyantai.blogbus.com/logs/28117977.html Vi/vim. The command has a number of different details of how to use the method, you can implement complex functions, record several here, convenient
The company server vim with the abnormal pain, write a few small scripts and do not want to use the IDE, so the simple transformation of vim, after trying to find the company's machine is vim6x, many plug-ins do not support, so simply reload into
Enter the following command:
For example, the Zo command First presses the z key, releases it, And then presses the O key to expand and collapse.
1. Enable and disable folding
Zo
Expand and collapse. Only the outer layers are folded.Zo
Expand All
[Vim] vim learning notes-open, switch, and close multiple filesOne case is to use vim in shell to open multiple files, and the other case is to open multiple files in the vim editor.Open multiple files at the same timeVim file1 file2Open the file
Xin Xing helps you with the movement mode required by programmers in Section 3 of vim. Xin Xing vim
First of all, it is worth mentioning that the pdf version of my vim tutorial has been completed. You can download it. Here is the download of csdn:
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