VIM Code FoldingVim code folding can be set with the "foldmethod" option, such as: Set Foldmethod=indent
There are 6 ways to collapse code
1. manual//Manual definition Folding2. Indent//Folding with indentation3. Expr//definition of folding with
Split-screen start vim
Use the uppercase O parameter to split the screen vertically.
vim-on file1 file2 ...
Use the lowercase o parameter to horizontally split the screen
vim-on file1 file2 ...
Note: N is a number that is
Efficient mobile
Outside of the insert mode
Basically, you should stay in the insert mode as little as possible, because Vim is like a "dumb" editor in the insert mode. Many beginners will stay in the insert mode because it is easy to use. But the
Vim Command Collection command historyCommands with: and/begin with a history, you can first type: or/Then press the up and down arrows to select a history command.Start vimEnter the following command in the Command line windowVim starts vim
1. Vim Common Operation1.1 Vim Introduction(1) Vim is a powerful full- screen text editor , which is the most commonly used text editor on Linux/unix, and its function is to create, edit and display text files.(2) Vim has no menu, only commands.(3)
The recent use of Git to push code to the Origin development Branch, also appeared several times vim window, to prevent forgetting or record it better;First press the ESC key to exit the editing state, and then press shift+; key, and then press wq!
When we use plug-ins, we do not want the plug-in installation is very messy, it is not an invisible black box, but also for the next convenient installation in other places.Due to the convenience of plug-in management, so there are vundle, the
Tools for working with text the SED of the Three MusketeersSed is a stream editor that processes a single line of content at a time. When processing, the currently processed rows are stored in a temporary buffer called pattern space, followed by the
Source:Http://www.cnblogs.com/itech/archive/2013/02/18/2915279.htmlThe beautifully formatted Perl code is not only pleasing to the eye, but also easy to read.Perltidy is a small project of SourceForge, after we have written a messy code, he can be
Linux-vim useAt present, the work environment is basically transferred to the Linux platform (ubuntu-16.04 x64), but it is inconvenient to view the code under the Linux platform. In fact, is accustomed to sourceinsight, and do not want to through
---restore content starts---Under Rootsudo apt-get update//Updatessudo apt-get install vim//installation vimCD ~ Go to home directorymkdir Creating a FolderTouch A.C Create a file A.CA before inserting the Shift+a line before the cursorI after
as a result of the recent work on the Linux system, often used to vi/vim, the operation of Vim for a certain period of time, began to use the high-frequency vim of the various shortcuts, of course, there is no less vim inside the powerful search and
VimThis keyword, I do not want to explain too much, I believe to see the colleagues here, the VIM has Seventeen-Eight points of understanding, if you do not know what Vim is, find a black room yourself ...Needless to say, today here is mainly about
Today on the Internet to see a article about Vim feel great, just record down to learn!VIM/VI IntroductionVim/vi is a powerful full-screen text editor, which is the most commonly used text editor on Linux/unix, and its role is to create, edit, and
Reference: Http://stackoverflow.com/questions/53664/how-to-effectively-work-with-multiple-files-in-vimYou can use tabs (introduced in Vim 7) to switch between tabs with:tabn AND:TABP, With:tabe can ad d a new Tab; And with a regular:q or:x you
Note: These commands have a colon before them:When you are finished editing the document, you are ready to exit VI when you return to the shell, you can use one of the following methods.In command mode, double-press two capital Letter Z, if the
(1) Address delimitation: Start_pos[,end_pos]#: A specific line of #, for example, 5 is the 5th line;.: Current line;$: last line;#,#: Specifies the row range, the left is the starting line, the right side is the end line;#,+#: Specifies the line
Vim is a powerful editor and may be more complex to configure on-line gods. There are many functions. My configuration here will meet the basic requirements. Fast and versatile, as long as you open your own VIMRC files follow my add a few lines of
This article is based on the knowledgehttps://www.zhihu.com/question/29333426"What are the LUA support issues for vim under Windows?" "Article summarizes the solution.A good gvim version of the main problem,https://tuxproject.de/projects/vim/Links
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.