Or the previous XENIX system, as a place of the Public Security Department of the Household Registration inquiry and management system, records more than 500,000 of the basic information of the population. The system was developed in 1989 and was
VIM provides the ability to edit multiple windows to simplify complex editing tasks. Vim's multiple windows are not meant to start multiple vim instances on a terminal.
Start multiple window edits
Vim's multiple windows are dynamic, you can open
The problem encountered today, vim edit a file when the Chinese display garbled, but cat view this file is normal, the workaround is as follows.Use the following command to edit the configuration file for vim.Vi/etc/vim/vimrcThen, hold down the
A text editor is the most commonly used tool in all computer systems. Unix under the editor has ex,sed and VI, among them, the most widely used is VI, and the VI command a lot, the forum seems to be summarized in this respect, the following summary,
This article mainly teaches you how to use the Vim split screen function.Split screen start vim
Use the uppercase O parameter to split the screen vertically.vim -On file1 file2 ...
Use the lowercase o parameter to split the screen
: Abbreviate followed by an abbreviation, followed by the full write of this abbreviation, so that after entering this abbreviation, VIM will automatically expand it to its full write: abbreviate lists all the abbreviations you've set up at the
1. Using vim built-in search engine VimgrepFormat:: VIM/PATERN/GJ * *Command:: Vim or: VimgrepMode: Query mode is included in//Parameters: G indicates that the keywords found on the same line are divided into multiple lines for displayJ means you
Vim Paste Code problemvim
When using Xshell for VIM operation, often directly paste some external code, and then paste on the following will appear progressive indentation of the situation, has not been to find out why, and line to get him
Vim Usage Tips1. Vim Advanced functionLocal selection and manipulation of text content (normal mode)Operation functionV Select part of the character, move the cursor after the first selected character Press "V", and the cursor will be selectedV
Ps:f7 Compile F9 run F8 call gdb F12 Form Initial header (C + +) (both in normal mode)CTRL + A Select all plus copy (normal mode)CTRL + Z Auto Indent (normal mode)Compile option added-std=c++11-o2Set Nocompatiblesource
Regular expressions consist of two basic character types: literal (normal) text characters and metacharacters. Metacharacters enable regular expressions to have processing power. A meta-character is a special character in a regular expression that
1 Synatax on 2 set background=light3if !has ('gui_running') 4 set term=xterm5 set t_co=6endif 78 colorscheme solarizedThere's a variety of instructions on the Internet, and I'm going to have a normalSolarized.vim it in the VIMRC after colors,
Vim Global Replacement file:The syntax is: [addr]s/source string/destination string/[option]the Global Substitution command is::%s/source string/destination string/g
[addr] Indicates the scope of the search, which represents the current row
Full Screen text editorVI:Vim:vi ImproveModal editor Edit mode (Command mode) Last-line mode Insert modeReplacement modeVisualization mode1 VI2 Vim file3 Vim + Number file If the number of rows positioned is greater than the maximum number of
Three command-line mode operation1. Enter insert modePress "I": Enter the file starting at the cursor's current position.Press "I": Insert at the beginning of the line where the cursor is located.Press "a": Enter text from the next position where
Vi/vim open mode, open the interface directly
How to turn vim off: Q: Direct close not saved
: q! Force close but not save: w Save changes: Wq Save and exit
In VIM mutation mode, move cursor KJHL: up or down
Inline jump 0 Beginning
Vim has four modes of normal Mode,insert Mode,commond mode and visual modeI key into insert mode, insert the character before the cursor coverA key enters insert mode, which is inserted after the character that is covered by the cursoro key into
Move0: Number 0, move to the beginning of the cursor$: Move to the end of the line where the cursor isInsertI insert from the cursor without overwriting the contents of the followingA prompt insert from the next word in the cursor positionA is
Frm:http://www.linuxidc.com/linux/2013-05/84031p2.htm
Before the official use of vim, a little appetizer, learn some of the common commands in vim, with these basic commands, so that we can use vim more handy, speed up the efficiency of the
Phenomenon:Gvim after installation, open Chinese Utf-8 encoded file Chinese display garbledProcessing:1. Start gvim8.0, Menu "edit", "Start setting"Add the following two lines at the beginning of the fileSet Fileencodings=utf-8,ucs-bom,cp936,big5Set
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.