1. Enter Command mode. Vim's command mode is to enter ":" in edit mode, and the cursor jumps to the last line of the screen, where the colon is displayed, and the command mode is entered.
The contents of the command mode are displayed on the last
yy copies the entire row of the cursor's row. or capitalize a Y.2yy or y2y to copy two rows. Sunglass, please extrapolate well. :-)y^ is copied to the beginning of the line, or y0. Does not contain the character where the cursor resides.y$ is copied
I thought I was not particularly proficient in regular expressions, but there was no problem with the basic usage. But recently encountered a problem or let me stretched, thanks to Nango guidance.
Let's start with a general understanding of regular
Turn from: http://www.lupaworld.com/?uid-296380-action-viewspace-itemid-118973
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
The configuration file for vim in Ubuntu is stored in the/etc/vim directory with the configuration file named VIMRC
In the terminal, enter the following command to edit the VIMRC configuration file:sudo vim/etc/vim/vimrc or sudo
Folding:
The folding commands in Vim start with Z and have 6 folding methods: Manual,indent,expr,syntax,diff,marker. Among them, manual the most basic, its command is universal, mastered the basic command of manual, folding is almost. To confirm
00 PrefaceLearning to program under Linux is the first thing to learn to use VIM, and to skillfully use vim can greatly improve the efficiency of writing code. is so-called AX, for this I refer to a few blog will be commonly used vim operation
This method solves my Windows Gvim Chinese garbled problem (share with you),This method references http://www.douban.com/note/145491549/To view the encoding of a file:: Echo &fileencodingVim has four options related to character encoding, encoding,
The official version of vim7.3 has been released. The Vim version installed with APT-Get In ubuntu 10.10 Is 7.2. If you want to experience the new feature of 7.3, you can only compile it by yourself. The Installation notes are as follows:
1.
Although Vim was used a long time agoTuneClick here and use only the commands you want. Recently, to improve writingCodeEfficiency, as well as coding fun, and re-study vim, found a good entry to VIMArticleThe original text is in the English version.
Remember to keep it in mind. The following method does not need to change the securecrt configuration, so it does not affect the display of other Chinese characters.Problem:For example, if a file is UTF-8 encoded, the file header is:
1#!
Highlight keywords in VIM
syntax enableHighlighted keywords: usually followed bysyntax onEnable syntax highlighting
syntax clearClear keyword highlighting
When securecrt is not in xterminal mode, try it and it does not work. If it is in
Reprinted this article please indicate from "LIU Da's csdn blog": http://blog.csdn.net/poechant
After the vim practice manual (8) vimide-build your own IDE (a), we all know that if tags is used to improve productivity. This article introduces
Let G: mapleader = ','
Set nocompatible
Set encoding = UTF-8
Set termencoding = UTF-8
Set fileencoding = UTF-8
Set fileencodings = ucs-bom, UTF-8, cp936
Set backspace = 2
Set number
Set history = 50
Set ruler
Set hlsearch
Set incsearch
Set mouse =
Remember to keep it in mind. The following method does not need to change the securecrt configuration, so it does not affect the display of other Chinese characters.Problem:For example, if a file is UTF-8 encoded, the file header is:1 #!
Sometimes the code is too long to look at, especially when reading the source code, you need to fold the code that you don't care about first to look at the code that you are most concerned about. Vim comes with the code folding function.Foldmethod
In other words, no eol at the end of a file is an incorrect file format, but many software in windows like this. We will not discuss this for the moment. Let's first look at how eol needs to be removed:
If the PHP file ends with?>, And this php has
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.