Summary of common replacement modes in vim.
1. Simple replacement expression
The replacement command can replace another word with one word in the full text:
: % S/four/4/g
The prefix of "%" indicates that replacement is performed in all
Commonly used compilers in Linux include VI (UBUNTU), VIM (VI improved), and Emacs. I prefer the vim editor in Ubuntu. I am not familiar with the emacs editor. I have read the two source code writing editors. Currently, I think Vim is easier to
The use of various major Editors is not satisfactory. notepad ++ is recommended by many people, but zencoding is too stingy. For me, other reasons such as the UE startup is too slow.
You have to use the following artifacts:
Download vim,
Http:/
ArticleDirectory
1. Create a new tab
2. Remote-tab function of gvim
3. jump between tabs
4. Tab sorting
5. Optimize the display of tab names
6 tabs and sessions
Although I have been using Vim to writeProgramAnd
Move the cursor
H j k l key:
Number Parameter 4l move 4 characters to the right
Move cursor paragraph0 beginning and end of $W moves to the right based on the distance of a wordB moves to the left based on the distance of a word.
I insert the
InWindowsUsed inVimYou can select"Edit with vimTo open the file. However, files opened in this way will be opened in the new window, insteadUltra EditOpen it in a new tab.
Vim 1, 7.0Tabs are already supported. How can I create a new tag instead of
1. Convert Enum in C language to Java constant:
G/^ \ s * $/dG/^/S // public static final int/
Leti = 1000G/,/S // \ = '. I.'; '/| let I = I + 1
2. # define macro in C to convert Java constants:
% S/^ # define [A-Z, 0-9, _] * \ Zs \ s \ ze/=/
Original article: Vim tips-quick move
1. move by Screen(1) The most common commands are as follows:CTRL + f // move the screen forward (to the greater direction of the row number). If you want F to represent forwardCTRL + B // move the screen
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
Vim-vimexplorer
Software Version:Ubuntu10.04Linux version 2.6.32-42-genericVim-VI improved 7.2Vimexplorer 0.99
Directory:
1. Introduction2. Download and install3. Use4. Configuration5. Problems I encountered
1. Introduction
Vimexplorer is a file
In VI/vim, you can use the: s command to replace the string. In the past, we used only one format to replace the full text. Today we found that there are many ways to write this command (VI is really powerful, and there are still a lot to learn).
I saw an article about Vim two days ago, which was very exciting. Before that, I heard about Vim. Of course, for me, it has always been a legendary "God" editor.
Learning Vim seems to really be something to learn. It is too simple and not as easy to
Summary of common replacement modes in vim.
1. Simple replacement expression
The replacement command can replace another word with one word in the full text:
: % S/four/4/g
The prefix of "%" indicates that replacement is performed in all rows. The
I have installed the winmanager plug-in before, but I feel that it is not very good to use. Today, we accidentally discovered a better File Manager plug-in called nerdtree. First, the red box marks the nerdtree area:
Is it really amazing? I changed
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
In vim, use cscope to read the source code and write comments to the file. However, you must save the source code to jump to the file. Otherwise, no write since last change is prompted, I
Question:With sourceinsight in Windows, you can easily locate functions, variables, and macro definitions, so that developers can manage project code and improve development efficiency. How can you perform similar operations in Linux.Vim can use the
1. securecrt
Settings in session
1) Session option → select the font (New, or fix-sys, or others), and select chinese_gb2312 for the character set.
2) Vim/etc/sysconfig/i18n
Lang = "zh_CN.UTF-8"
3) VI ~ /. Bash_profile
Export lang = zh_CN.UTF-8
2.
In VI/vim, you can use the: s command to replace the string. In the past, we used only one format to replace the full text. Today we found that there are many ways to write this command (VI is really powerful, and there are still a lot to learn).
Http://xbeta.info/vim-tutorials.htm
"General settings """"""""""""""""Set nocompatible
Filetype plugin onFiletype indent on
Set autoreadSet rulerSet nu
Set laststatus = 1
"Configure backspace so it acts as it shoshould ActSet backspace = EOL, start,
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