When performing simple global search replacement, you can use the following ex command: : % S/which/what/g It is easy to use
%
Each row (everyline)
S
Replace (substitue)
Which
Search
Configuration path:/etc/Vim/vimrc. This is the vim configuration of the system. If multiple users in a PC use different configurations, create a new one in the user directory. the vimrc file is enough.I currently write the configuration in the
In Vim (1) and VIM (2), the concepts of the mode in vim and some simple text editing commands are introduced, such as the movement of the optical mark, selection, copying, cutting, and pasting of the editing area. Next, I would like to introduce how
The encoding in VIM is mainly related to three parameters: ENC (encoding), fenc (fileencoding), and fencs (fileencodings)
Fenc is the encoding of the current file, that is, a file that has been correctly displayed in VIM (the premise is that your
The mutex/thread Implementation of GCC 4.6 may have some problems. As a result, when mutex/thread is used, the chrono compilation error may occur and the prompt cannot be prompted. after research, clang 3.1 supports libc ++ mutex/thread and switches
Vim completion method:
========================================================== ============================ Full line completionCTRL-X CTRL-LBased on the keyword in the current fileCTRL-X CTRL-NDictionary-based completionCTRL-X
ArticleDirectory
Step 1: Download C. Vim
Step 2: Install
Step 3: Enable this plug-in
Feature 1: Add automatic header to *. c file
Feature 2: Use "If to add a c Function
Feature 3: Use "IM to add the main function
Feature 5:
1. Overview
In general, jump in code is inseparable from ctags.
In fact, the Code redirection in VIM is completed by the vim tags module, and the tags module depends on the tags file.
Ctags (generate tag files for source code) generate the tags file.
The script language is too strong.
My goal is to add my default code header function to vim.
1 /****************************************************************************** 2 * COPYRIGHT NOTICE 3 * Copyright (c) 2014 All rights
The color of sublime text is quite colorful. Today, when I browsed the webpage, I found a Vim Molokai color. It is a textmate-based monokai color,
It is similar to the default topic monokai of sublime text. If you prefer sublime text, try
Install
In centos, we can directly use the yum command for installation.
Overall steps
Install cscope
Configure the vim configuration file
Generate a cssag. Out File
Use the cssag command to perform operations
Cssag Installation
Download on
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
When we use gvim to edit a file, ~ If we do not want to automatically generate a backup file when editing the file, we need to modify its configuration file, but I did not find the corresponding configuration items in the vimrc file, so we found
Download and install python.
Download Vim from the vim website.Self-installing executable.
Edit the vim configuration file _ vimrc
Copy the stuff in vimrc_example to _ vimrc
Remove source $ vimruntime/vimrc_example.vim from _ vimrc.
Set Chinese
Txtbrowser is a Vim plug-in designed to provide a better TXT browsing experience. Main functions: automatically generate a directory tree sidebar (taglist window) for plain text, syntax highlighting, and multiple extension functions (execute URL,
I learned some simple mobile shortcuts for vim last time and used them for a period of time.
You are already familiar with these shortcut keys.
Continue learning now
This time, we will summarize some shortcut keys for inserting, searching,
Add comments to multiple vim lines
Button operation:
Add comments: Ctrl + v to enter the column editing mode, move the cursor down or up, mark the beginning of the row to be commented, and press the uppercase I, then insert the comments, for
Vim-) move the cursor
Movement
Command
Flip the screen
Ctrl + F
Flip the screen
Ctrl + B
Front Half Screen
Ctrl + D
Half screen flip
Ctrl + U
Roll Forward a row
Ctrl + E
Use vim (1): Basic commands1. vim has three modes: Normal Mode, edit mode, and command line mode. 2. In normal mode, use vim to open a file and enter normal mode. In this mode, you can delete characters and lines and copy and paste file data. 2.1
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