Vimgrep is a tool with Vim, which is similar to the use of grep. For example, to find word in the current directory, use the following:
1
: Vimgrep Word *
If you want to recursively look up all the subordinate directories,
1. Character Operation
I insert
I Insert at the beginning of the line
A Line End Insert
X Delete one character after
X Delete one character after
U undo One Step
2. Line Operation
The home or ^ key moves to the beginning of the line
End key or $
Turn from: http://www.open-open.com/lib/view/open1414227253419.html
TagList Click on the Open link
TagList is a plug-in used to display various symbols in the locator, such as macro definitions, variable names, struct names, function names, which
Reprint of the http://blog.csdn.net/king_on/article/details/8104235
Declaration of this digest from the network, the initial author is not clear, so did not leave the original link. If anyone knows, please tell them.
Vim is one of the best text
1. Download Pathogen and install
Pathogen's download address is: Https://github.com/tpope/vim-pathogen
Create a . Vim under ~ and then create bundles under. Vim AutoLoad
# CD ~
# mkdir. Vim
# mkdir. Vim/bundle
# mkdir. Vim/autoload
Bundle is the
When using the Linux operation, will definitely use the Vim editor, about this editor will not do more introduction, you can go to Google a bit. Vim Editor's plugin is very much, this article introduces a VIM plug-in management tool pathogen. 1.Vim
=================================linux VIM Replication ============================1. Copy1) Single-line copyIn command mode, move the cursor to the line that will be copied, and press "yy" to copy;2) Multi-line replicationIn command mode, move the
Vim is a well-known, powerful, highly customizable text editor similar to VI, which improves and adds many features on the basis of VI.As a Linux enthusiast, Vim is the most commonly used text editor, the default vim configuration file. VIMRC does
Linux 15th day vim and Scripting BasicsTime: 20180801Vim Text Editing ToolCommand modeY copyP PasteG Navigate to document to first lineG navigates to the last line of the document^ Position the front non-null character of a row0 position the
①vim Common Operationswww.vim.org1. Vim Working modeEnter VI filenameexit Input: Wqedit Mode Command (: Input later): Set NU Displays line numberInsert mode i/a/oCommand modeInsert mode (ESC returns command mode)edit mode:2. Insert Commanda
Linux Eighth session--------------------------------------------------------------------------------------------------------------- ------------------------------------42. VIM Basic ConceptVi:visual Interface, Text editorText editing type: line
VIM Displays the line number when it is opened by default, so that you can display the line number manually in command mode without having to edit it each time.To create a configuration file for a. vimrc.When Vim is started, the. vimrc file under
If it is vim7.3, you do not need to download the pythoncomplete. Vim plug-in because it comes with the plug-in during installation.
However, you must ensure that the python feature is enabled during compilation and installation of VIM, namely:
Take my Ubuntu 12.10 As an example. After Vim is installed, the python plug-in is provided.
ls /usr/share/vim/vim73/autoload/adacomplete.vim netrwFileHandlers.vim sqlcomplete.vimada.vim netrwSettings.vim syntaxcomplete.
Configure Vim on your own virtual machine. I don't know how to use a lot of data on the Internet. I personally think it is better to add one. Below are some of my simple configurations, which are enough currently. Wait for what to use, and then
The use of VIM in Linux is indeed very important, and many times you don't need to forget it. Therefore, you can record Common commands here. For simple insertion modes or command modes, you don't need to elaborate on whether to save or not.
1.
I. Modify the configuration file. vimrc to create a personalized Vim
This document assumes that the installation directory is ~ /
In ~ In the/Vim/share/Vim/vim73/directory, there is a vimrc_example.vim sample file. Modify the corresponding
Select, copy, delete, and paste all
Delete all: Press ESC and then DG
Copy all: Press ESC and then ggyg
Select all highlight: Press ESC, and then ggvg or ggvg
Explain the above commandsGgMove the cursor to the first line, which is valid in vim and
It took a long time to sort out and shared it easily.
My Vim configuration has the following advantages:
1. Press F5 to directly compile and execute C, C ++, Java code, and shell scripts. Press F8 to debug C and C ++ code.
2. the file header 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