Add the following to. vimrc:CodeAfter that, restart Vim to generate four spaces by pressing tab:Set Ts = 4 (Note: ts is the abbreviation of tabstop, with four spaces in the tab width)Set expandtab
For saved files, use the following method to
Http://cookoo.iteye.com/blog/32275
Method:
1. Press V to enter the visual state, select multiple rows, and use> or 2. generally, auto indent layout is used based on language features: In the command status, the current row is used = (two
This is my first English tutorial; I hope I can help you to learn Vim. Any question send email to me. Thank you for watching!
1. Install ------------------------- (YouTube )(Youku)
2. Move ---------------------------- (YouTube )( Youku)
Some terminals can be restored to the status of the terminal before vim is enabled after Vim is exited, similar to the following:
$ Vim/etc/sysconfig/
#### Enable Vim #####
Sdskk, some file content
: Q
$ Vim/etc/sysconfig/# restore the
Follow the steps in the previous article to install the plug-in. Several problems have occurred.
(1) unidentifiable tag command:
Error detected while processing/usr/share/Vim/vimrc: line 57: e475: invalid argument: On line 65: e492: not an
I accidentally saw notepad ++ on the Internet. After playing, it's okay. Others by the wayProgram/Text Editor: ultraedit/sourceinsight/Vim/Emacs/VI. Pretty good!
Source insight: http://baike.baidu.com/view/1539152.html? WTP = TT
VIM:
You can download the configuration color here.
Http://vim.sourceforge.net/scripts/script.php? Script_id = 1, 625
Download the colorsamplerpack.zip package under the webpage.
The color configuration preview is shown here. Each preview has a
Snippetemu is recommended in shuimu vim, and MS is a tool similar to visual assist in VC ++.The download URL is as follows:
Http://www.vim.org/scripts/script.php? Script_id = 1, 1318You must download both snippy_plugin.vba and snippy_bundles.vba
Previous blog 《Copy content in VIM to system clipboardThis section describes how to copy the content in VIM to the system clipboard. It can be seen that a copy requires many keys, so I want to define a shortcut key to simplify the operation. The
How to save the unnamed Vim in Linux
On the command terminal, enter the vim command to open the vim file. After editing the file, the system will remind E32: No file name to save the file. How to save the unnamed Vim? The following describes how:
1) insert function (that is, insert one or several characters in a column of several rows)Step 1: move the cursor to the specified position of the row to be inserted.Step 2: press Ctrl + V to enter the visual block mode.Step 3: move the cursor to
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
Reprinted please indicate from "LIU Da's csdn blog": http://blog.csdn.net/poechant
1. Encrypt Your text files
When you use Vim to open or create a file, if you add the-x parameter, that is:
vim -x filename
Then Vim will prompt you:
Enter
Reprinted please indicate from "LIU Da's csdn blog": http://blog.csdn.net/poechant
Let me call it a VIM-IDE, it sounds like a fight with the IDE of Eclipse, Visual Studio, xcode stream, more fun, you can call it vimide, isn't it more like
To turn
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).
1. Exit the current form: Q
2. Exit VIM: QA!
3. Jump to the tag, move the cursor to the tag, and press Ctrl +]
4. Set the left mouse button and double-click the tag to jump: Set mouse = a note that there are spaces on both sides of the equal
First, this error is caused by your own carelessness. when creating the file, you use the root permission and find that WQ cannot save and exit after editing in VI. The error e212 is displayed: the file cannot be opened and written. I have not run
Document directory
Preface
Tag command
Window command
Others
Move on screen
Bookmarks
Mark text
Actions on tags
Preface
Vim is a super editor designed for programmers. It is incredibly powerful.. However, the learning curve is steep. I
Author: Yang Shuo,Hua Qing vision embedded college lecturer.
Every programmer has his/her own favorite code editing and viewing tools. I believe many programmers in Linux like vim, although Vim does not look as powerful as sourceinsight's
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