Edit command:I insert the word "a" before inserting a Line at the end of insert an O new line edit O Create a new row aboveInsert:X i * "ESC" insert 10 *25 a XX "ESC" insert 25 xxj join merge two rowsMove:
1 Introduction to the project plugin for VIMThe purpose of the project plugin is to help users manage the source code in the form of projects.2 Download the project pluginA) Official website: http://www.vim.org/scripts/script.php?script_id=69.b)
Sometimes many files, want to know the current file name, shortcut key: CTRL + G canIf you feel that it is not enough, then modify the vim configuration:Vi/etc/vim/vimrcAdd the following to the last side: Let &titlestring = expand ( %:p " ) if
As a non-professional operations personnel, miserable for the forgotten operation and regret, hence reproduced!From:http://www.21andy.com/blog/20100413/1859.htmlVim notes Multi-line simplification instructionsThe following comment 3 line operation
Before writing, the mind can most commonly used to familiar with the operation of Vim, the content is not much, write half do not find, even the most commonly used operation, finish to write a lot, already can not be called a minimalist tutorial,
The command for case conversion in Vim isgu or guThe explanation of the image is that small u means lowercase; big u means capitalization.All that is left is the qualification of the two commands (the line, the letter, the word), etc. whole article
1. Full-text coverageAfter the program is published to the test and development environment, it is often necessary to telnet to the Linux change code. Usually in the IDE, CTRL + A, CTRL + V to cover the entire document, you need to do this in vim
Vim is an enhanced version of Vi, it does not have a menu. Only commandInsertAInserts text after the current cursorAInserting text at the end of a bankIInsert text before the cursorIInserting text at the beginning of the bankOInsert a new line under
1. Summary of the use of the text Editing tool vim650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/A4/wKiom1Xpq2-CsSpzAAXcWbe4sX4262.jpg "title=" Vim usage Diagram "alt=" Wkiom1xpq2-csspzaaxcwbe4sx4262.jpg "/>2. File Find command
Cause: Yesterday, from the GitHub clone source, some of the Readme.txt files were garbled when Vim was turned on. Find the answer on the Internet, it is said that the Linux character set and Windows character set incompatibility caused by the
Global substitutionFormat:":%s/to replace character/replace with new character/g":%s/old/new/gSpecify line substitutionFormat: ": Starting line, terminating line s/to replace character/replace with new character/g": 1,5 s/old/new/g
Multi-file
Everyone crossing, welcome to listen to the large-scale couplet science fiction: Vim. Last time we summed up the Dragon Slayer knife: Vim'sAll kinds of knives. This time, let's not talk about Vim's skill. Let's talk about Vim's plugin today. Well,
Download and configureThe official address of the Nerdtree plugin is as follows, and you can get the latest version from hereHttps://github.com/scrooloose/nerdtree Download Zip installation packageOr use the following official website source file
I. Introduction of VIM ModeThe following introductory content is from the Wikipedia vimThere are many modes of vim from VI, this unique design is easy to confuse the beginner. Almost all editors have two modes of inserting and executing commands,
"is more compatible with Viset NOCP" set the BACKSPACE key to work "indent: Set auto indent, want to use backspace key to indent the field by deleting" EOL: If the insertion mode starts at the beginning of the row, you want to merge two rows by
VimI: InsertI: Insertion at the beginning of the lineA: Insert after cursorA: End of line insertionO: Next line InsertO: Previous Row insertX: Delete one character afterX: Delete the previous characterU: UndoU: Undo All actionsShift+d: Deletes all
e325:attention file "******** " ******* Press ENTER or type command to continueThe reason is that in the VI or VIM operation before the use of VI or VIM operation of the file with an abnormal interruption, so in the current directory
There are two cases in which the open file appears with the ^m symbol:1. Vim is configured as Fileformat=unix, and the files you open are in DOS format. The Unix-formatted newline character is 0A (ASCII) and the newline character in ,dos format is
Vim is a kind of vi-like text editor, but on the basis of VI added a lot of new features, Vim is generally respected as the best of the Class VI editor, in fact, the real enemy from the different variants of Emacs. 1999 Emacs was selected as the
Reprinted from:-Tiansheng's diary-NetEase BlogThere are two problems with the character encoding of Vim/gvim under Chinese Windows:
No encoding detection function by default
If a file itself uses a character set larger than GBK (such as
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