Replace with the content of the copy
When there is a spelling error or if you want to rename an identifier, you need to replace the current name with the contents of the copy. For example, when invoking a function, the error is written:
Objective
Vim is a considerable force from the UNIX platform of the command line editor, but not to the power, Mac OS x is not a lot of Linux distributions on the top of vim, such as the Cool God Horse Code highlighted AH, automatic indentation and
You have to admit that whenever you see someone using Vim, you wonder if he knows something you don't know. Why else would he use such an outdated editor, or open source trash?
You won't like it unless you spend at least one months a day using the
[Call Sqlplus.txt in 20170617]vim--//previously wrote an Emacs downgrade with Sqlplus article, has been wanted to learn Emacs, limited own vim, to learn it no interest, the original link is as follows:--//http://blog.itpub.net/267265/viewspace-130903
Vim's split-screen functionSumming up, basically are ctrl+w then add a key letter, triggering a function.(1) Open several files in the shell and split the screen:vim-on file1 file2 ...vim-on file1 file2 ...Large O for Vertical division (vertical),
Haha, small series again, today, small series will introduce you to the powerful Vim editor on Linux. First of all, let us introduce what is the Vim editor. The Vim editor, also known as a text editor, does not require a graphical interface to work
Turn from:http://blog.csdn.net/love__coder/article/details/66591031, install Nerdtree plug-inDownload First, official website: http://www.vim.org/scripts/script.php?script_id=1658 After decompression, copy the Plugin/nerd_tree.vim and Doc/nerd_tree.
Reference: http://blog.csdn.net/hk2291976/article/details/51280816Common commands:K,w: Move up;J,s: Move Down;H: Left;L: Right;U: Top Half pageD: Lower half pageGG: Web HeaderG: End of page0: Left of the page$: page Most RightCopy and paste in
Vim Command modeVim can be configured to work in Vim's command mode: Set nu line number added650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9C/29/wKioL1lszNOjo3V-AAGGfA_ifkw114.png-wh_500x0-wm_ 3-wmp_4-s_649828243.png "title="
Vim is a text editing tool under the Linux operating system. It is an upgraded version of VI. Unlike VI, when you open a file with Vim, the character color is clearly displayed. The default system does not have vim tools and can be installed via the
How to move the cursor
h or LEFT ARROW key (←)
The cursor moves one character to the left
J or DOWN ARROW key (↓)
Move the cursor down one character
K or Up ARROW key (↑)
Move the cursor up
Vi/vim Text EditorGeneral mode:DD: Delete cursor when moving forwardDND: Delete n rowsU: Undo Step Up actionYY: Copy when moving forwardP: Pastex: Delete a letterDW: Delete a wordYW: Copy a wordshift+^: Moving to the Wardrobeshift+$: Move to Row
grep: Text Filtering (Pattern: pattern) tool includes: grep, Egrep, fgrep (regular expression search not supported)Usage format: grep [OPTIONS] PATTERN [FILE ...]Patterns: Filter conditions written by regular expression characters and text
Vim/vi is a very common text editor under Unix/linux, most of the machines have VI, on different machines commonly used in different variants of software which VIM is more useful also used more widely vim is the abbreviation of VI improved,
1. The configuration files in Linux exist in the form of plain ASCII text2, vim text compiler.
General mode: A file opened with VI directly into the general mode, this mode can move the cursor and delete characters, copy and paste, etc.,
Vim is a well-known, powerful, highly customizable text editor similar to VI, which improves and adds many features on the basis of VI.Mastering the Simple VIM command can greatly improve the efficiency of our editing document, and in the Linux
The command is also called motion: Help!Filter commandsInformation Filtering (filter)!==>tell vim to performing a filter operation!5G, from the cursor down 5 lines to execute the filter program (tell the VIM to start filter under cursor and go down 5
The command to edit the file on Mac always can't remember, leave a reference!!!If it is vim, then: ESC exits edit mode and enters the following command:: Wq after saving exit VI, if: wq! After forcing the store to exit (common): W Save but do not
Files edited with Vim in Ubuntu without changing the GBK encoding The code is as follows:Copy code Sudo vi/var/lib/locales/supported. d/zh Add the following content: The code is as follows:Copy code Zh_CN.GB18030 GB18030Zh_CN.GBK
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.