Thank you for the article of the Ox. It solves the problem that I have a headache with vim. When VIM creates a new file, the sticky code is automatically indented, resulting in a very confusing format. According to Blogger's experience, in/etc/vim,
This is called "Vim speed Introduction" article, really is the introduction of the speed, usually need is so much, so turn around. Here, by the way, a lot of things are not inclined to read the original in recent studies, so that they can quickly
VI Editor has 3 kinds of modes: Command mode, input mode, last line mode. It is important to master these three models:Command mode: VI after the start of the default to enter the command mode, from this mode using the command can switch to the
I. Installation of XDEBUG
1, compile and install Xdebug, you can also use pecl install Xdebug
wget http://xdebug.org/files/xdebug-2.3.2.tgz
tar-zxvf xdebug-2.3.2.tgz
cd
Always avoid coding problems this pit, when creating a text file, uses the Utf-8 encoding.
But put on Linux, vim Open or garbled.
Cat looks at the content is normal.
So my code should be correct, but Vim does not use Utf-8 to open the text.
Add
1. Enter the character interface
2. Create a folder for storing source files
mkdir HelloWorld//Create Folder command
CD HelloWorld//Enter the new folder, this should be said that the directory is better, windows with the habit of
vim main.c//Open
1, the concept of vim and basic operation
VI command line below the text Editing tool, Vim is VI's enhanced version. Command vim to start the Vim editor. Vim can generally be used in the form of a vim+ destination file path. If the destination file
VI (VIM) is a very common code Editor on Linux, many Linux distributions are installed by default VI (VIM). VI (VIM) command a wide range but if used flexibly will greatly improve the efficiency. VI is "visual interface" abbreviation, VIM is VI
Vi/vim Basic Use MethodThis article introduced the VI (VIM) basic use method, but for the ordinary user is basically enough. I/vim the difference is simple, they are multimodal editor, the difference is that vim is VI upgrade version, it is not only
vim Practical Small Command
1. How to paste command line modeThere are two modes of general VIM: Command line mode and edit mode
When we press the ESC key and then enter: After that, we enter the command mode, and then we can enter the command.
But
This article in the author's personal blog, blog Park, csdn synchronous publication, if reproduced, please indicate the author and the original link. CSDN Link: http://blog.csdn.net/miracle_wong/article/details/25039889
Recent learning artifact Vim,
http://download.csdn.net/download/litao0976/6325921
Recently configured with Vim, you can quickly build projects like Sourceinsight, find files, sign jumps, function lists, and auto-complete.
Moreover, the symbol update is automatic, and from now
Vim Command mode uses:/To search for content to search, such as ":/term" in vim searching for term
The commands for modifying colors are as follows:
: Hi
After the command executes, it can display all the colors that can be set and choose one of
Ubuntu VIMRC settings are available for Ubuntu and Fedora Systems, and other systems are not validated.
Vim configuration files in Ubuntu are stored in the/etc/vim directory, with the configuration file named Ubuntu VIMRC
The configuration file
Use of Vim1 command mode, edit mode, last line mode, command mode is the broker of edit mode and last line mode.Vim Common commandsI: Enter edit modeYY: Copy cursor row copy multiple lines: Digital +yyP: Paste, paste multiple times: digital +pDD
=================================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 Program Editorbasically VI It is divided into three modes, namely General instruction mode, edit mode and instruction column command mode.General instruction Mode : Open a file to go in, he can delete, copy, paste and other operations, but can
Supplement:
VI display row number:
: Set nu
: Set number. The row number is displayed on the left of each row.
: Set rexample row number displayed in the lower right corner
Set numberwidth = n when each row has a small space, it is not prefixed with
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.