Original: http://vim.wikia.com/wiki/Copy,_cut_and_paste
Reference: http://linuxtoy.org/archives/efficient-editing-with-vim.html
Ever try to cut (or copy) some lines and paste to another place? If you need to count the lines first, then try
Download and install gvim gvim71.exeDownload ec57w32.zip (ctags) to connect to ctags
Decompress the package and copy ctags.exe to C:/Windows/system32/Download the taglist
Decompress the package and copy the plug-in/taglist. Vim DOC/taglist.txt
Range () is a new function used to generate a list containing a number sequence. Of course, it can also be used to generate row numbers:
"Add the row number for the first 30 rows: for I in range (31): Call setline (I, I.''. Getline (I): endfor
At the beginning, after Ubuntu is installed, garbled characters will be displayed after you exit with vim. This is because Vim of Ubuntu is linked to/usr/bin/gnome by default, this is different from the usual vim, so if we need to use the usual vim
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
Source: http://www.cosysun.com /? P = 126
There must be a compilation tool for developing python in Linux. There is no doubt that we chose vim, but Vim alone cannot meet our needs, this series will introduce several commonly used plug-ins to
This is a pretty good PythonCodeAutomatically completed scripts.
The following Python code can be automatically completed:
Simple Python keyword completion
Python function completion with parentheses
Python module completion
I was also looking for a quick way to select all, but many of them are repeated and incorrect on the Internet, such:1, $ y, what is this? To write, you must also write: 1, $ y, but I tell you, write: 1, $ Y is all copied, not all selectedDG. This is
Do you often encounter this situation like me: you have edited a system configuration file in Vim, and you only need to save it to find that the current user has no write permission for the file. If you have made a lot of changes, it is really
Emacs is the god Editor, while Vim is the god of the editor. Why are the two so well known and I want to hear from you in this article.
Author:
Jiqing Wu
Email:
Jiqingwu@gmail.com
Homepage:
HTTP: //
1. Configuration File LocationUnder the/etc/directory, there is
VimrcFile, 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".
On G +, we can see the introduction from netizens and find that Vim can highlight the code into HTML documents according to the current syntax. This is a very considerate small function.
For me, this function has at least two functions. First, put
Although Vim has been used to write programs and documents, it has not been used to explore the specific usage of its tab page function. Now I am paying attention to this issue. After all, it takes less and less time to use Vim. Of course, this is
12-09 update: The English version of VIM visual cheat sheet is also available. PNG, PDF)
(Update:Add the basic instruction table and description in the graph andPDFTo facilitate printing and pasting on the wall at any time.)
I was writing that
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).
Automatic indent settings: Set cindent
Format and adjust. =
Manual adjustment. Code auto-completion
Insert mode: C + n to complete the next step; C + P to complete the previous step.Show row number
Command mode: set numberPowerful g
Some common operations of VIM plug-in zencoding
Pretty cool, record some common operations
Easy to install, no longer like I used sparkup. Vim to configure the python environment, can be directly connected to the
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
Although in. vimrc sets: Set aiset Si can intelligently align thml on Windows 7 using the "=" equal sign key. Although C files can be intelligently aligned on Linux, HTML cannot. Linux and VIM really have a lot of preferences for C. The solution is
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.