as a stringYou can also write this:1, $s #/etc/hosts#xiaobo.com#g: 1, $s/dnsmasq/aminglinux/gNote: 1. Replace ":" before adding "2.$ that the end of the line can also be represented by a number, such as 1,100 for the first row to the 100th row3. s means replacement4.////Front two/middle write what to replace two/middle write what you want to replace5. G global variable represents allDe-translation:where/etc/hosts/need \ de-translationor///change to # # # or @@@Small knowledge:: Wq and: X If the
Vim color scheme settings (Change vim color scheme) (1) After vim is installed, run the command whereis vim and you will see the returned result: vim: /usr/bin/vim/usr/share/man/man1/vim
Vi and vim Editor (16): vim's Multi-Window Function (1)
By default, vim edits all files in a window. Only one buffer zone is displayed when files are moved or moved to different parts of the file. However, vim also provides multi-window editing to simplify the composite editing tasks. This article will learn how to use multiple windows in a running
Vim tutorial, vim
Vim is a powerful editor with many commands. This document will not be detailed in this tutorial. The purpose of this tutorial is to describe some necessary basic commands. With these commands, you can easily use vim as a universal editor. It takes about 25-30 minutes to complete this tutorial, depend
This is a creation in
Article, where the information may have evolved or changed.
2014-11-09 WCDJ
Summary : Previously summarized in SUBL using Golang, "Golang and Sublime Text 2 mac OS X 10.8.4 Development Environment Installation". In fact, Golang's installation package already contains support for VIM writing plug-ins, configuration method is very simple, can refer to the "Golang gvim/vim configuration"
Introduction to VIM ModeThe following introductory content is from the Wikipedia vimThere are many modes of vim from VI, this unique design is easy to confuse the beginner. Almost all editors have two modes of inserting and executing commands, and most editors use a different approach to vim: the command directory (mouse or keyboard driver), the combination of ke
Run the VIM exit command and run the vim exit command.
Note: These commands are preceded by a colon:
You can use either of the following methods to exit Vi and return to shell after editing the document.
In command mode, two uppercase letters are used for a connection. If the edited document has been modified, Vi saves the document and exits, and returns to shell; if the edited document has not been modifie
Vim basic operations and vim basic commands
Copy y
Paste p
Cut d
When the row processes yy (copy row), dd (cut row)
Multi-row processing nyy (copying multiple rows) and ndd (cutting multiple rows)
Line paste when row copy is used
Partial row pasting when using region Replication
Intra-row processing y ^ (copying from the cursor to the beginning of the line), y $ (copying
Introduction to registers in VIM and about VIM registers
When we used to paste text copied from other places in vim, we always used shift + inert. At that time, we thought, could we directly paste the text like p, you do not have to enter the insert mode and paste it again. Later, I read the introduction to the vim reg
Next, continue to learn the multi-window functionality of the VIM editor. This article focuses on adjusting window size, buffer and its interaction with Windows, pagination editing, closing and leaving Windows.Resizing the window:In Gvim, you can use the mouse to adjust the size of the window, just use the mouse to click and drag the window boundaries. If it is in vim, just turn on Mouse selection (": Set M
1.SPF 13-vim Spf13-vim is a release version of the Vim plug-in and configuration, including a set of carefully selected vim plug-ins, using Vundle for plug-in management . after the Spf13-vim is installed, it generates the following files:. vimrc.vimrc.before.vimrc.bundle
Use Vim, vimMode
ESC \ Ctrl + c: Exit edit mode
ZZ \ wq: Save and exit in command mode
Edit
I: Enter the editing mode.
I: Go to the beginning of the line to start editing
S: deletes the current character and enters the editing mode.
A: edit the current character
A: edit A non-null character from the end of the current row.
Mobile
H j k l: bottom left, top right
0: zero number, to the line Header
^: The first place in the line that is not
Configuration file path:/ETC/VIM/VIMRC
SYN on; syntax highlighting
Set tabstop=4 tab width
Set shiftwidth=4, line indent width
Set backspace=2, setting backspace available
Set Incsearch Search Auto-complement
Set ai! ; Set Automatic indentation
Set nu! ; Show line Numbers
Make VI compatible with Windows Chinese
Set fencs=utf-8,ucs-bom,euc-jp,gb18030,gbk,gb2312,cp936
CTRL + N automatically search for complement functions or variable
Address: http://linuxtoy.org/archives/efficient-editing-with-vim.html
Although Vim was used a long time agoTuneClick here and use only the commands you want. Recently, in order to improve code writing efficiency and coding fun, I re-studied vim and found a good Vim getting started article. The original Article is in English, I think it is very suitable for gettin
Everyone crossing, welcome to listen to the large-scale couplet science fiction: Vim. Last time we introduced the Nerdtree in vim.Plug - ins.. This time, we no longer introduce the new vim plugin. But we're going to do a Zhanghuizhong of the Vim plugin and vimA summary. This is the last of the big couplet tech fiction, so this one is called the
Vim command Summary: vim command
I recently started to use Linux. Now I want to summarize the vim command from a beginner's perspective.Four Vim Modes
1. Start Vim
1. Double-click the desktop icon to start Vim (GUI)
2. In the Sta
Indent and highlight settings under vim, and vim indent highlight settings1. Configuration File LocationUnder the/etc/directory, there is a file named vimrc, which is a public vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private configuration file named ". vimrc ". For example, A. vimrc file alre
Vim syntax highlighting and vim highlighting1. Configuration File LocationUnder the/etc/directory, there is a file named vimrc, which is a public vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private configuration file named ". vimrc ". For example, A. vimrc file already exists in the/root directo
Talk Vim together (20th back: Vim plug-in NerdTree), vimnerdtree
Hello, everyone. You are welcome to join in to hear the story of Zhang huiti: Vim. The last time we introduced taglist in Vim
Plug-in .. In this case, we will continue to talk about the Vim plug-in, but we are
Everyone crossing, welcome to listen to the large-scale couplet science fiction: Vim. Last time we talked about the Dragon Slayer Knife: Vim ChaseLife. This time, let's go on with Vim's Blade: the Sword of vim. Well, that's the word, the gossip,Words return to the positive turn. Let's talk about vim together!Crossing,
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.