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
Www.vim.org command: Set nu to use VI more quickly, we need to master several sets of commands {#1, [INSERT command] A, A, I, I, O, O #2, [positioning command] H, J, K, L, $, 0, H, M, L: Set nu to set the row number: setnonu cancel the number Gg 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
I recently advocated Vim in the project team: the first reason is that the text editors used by everyone are different. They use ue, notepad ++, and editplus, some tools involve copyright issues, and the final text format is not uniform during text
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".
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
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
On the one hand, you can see it elsewhere :)
In fact, in the past, Vim's configuration was nothing more than looking at someone else's long configuration file and copying it by yourself. Now it basically forms a habit, add the shortcut key as needed,
This is a plug-in for VIM. You can see the name. It belongs to the same author as the nerd tree. With this plug-in, you can comment out files of various file types in different ways and quickly. This is undoubtedly a tool to improve efficiency and
Install it in Windows:1.Download from www.vim.orgTaglist_45.zip. After decompression, there are two files Doc and plugin. Copy these two files to the install directory Doc and plugin of vim.2. Open Vim : Helptags $ (home)/doc: HelpTaglistThen you
I often use the VI editor, but it is basically a habit of windows. I have never learned the functions of the system. Today I have encountered text copying, which is no way to solve it. Let's take a look at the solution below: references: NLP often
After Vim is installed, if it is not highlighted, set it as follows:
1. If not ~ /. Vimrc, first create
$ VI ~ /. Vimrc
2. Switch to the insert mode and copy the following settings directly:
set autoindentset cindentset
Http://blog.chinaunix.net/uid-346158-id-2131115.html
In the work, it is suspected that the width of a tab in VIM is too large. In the Debian system, the width is 8 characters before it is changed. to change it to 4, see the following:Cd ~Vim.
1. Import copyright information at the beginning of the file
Copyright information usually needs to appear at the beginning of each source code file. This part of content is the same and there is no need to repeat the input. Even copying and
Vim usage notes
**************************************** ****************************************
---- 1 ---- SHIFT + Z in normal mode, equivalent to: WQ
**************************************** ****************************************
----
View File encoding
Highlight the current row set cursorline
Highlight the current column set cursorcolumn
Delete linefeed J
Definition of work iskeyword
Exchange two characters in XP
Move to the end of GE <> E blank Definition
Blank and bounded
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