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
Multi-column windowYou can divide the current window horizontally into two columns by using the following command
: NewCreate a new column blank window
: SplitDisplays the current file in two columns
Similarly, you can use the following command
Vim EditorText editor, word processorAsciiNano, SEDVi:visual InterfaceVim:vi improvedFull screen editor, modal editorVim mode:Edit mode (Command mode)Input modeLast-line modeMode conversion:Edit--Input:I: In front of the character of the current
Http://coolshell.cn/articles/5426.htmlThe learning curve of Vim is quite large (see the learning curve of various text editors), so if you start to see a bunch of Vim's command classifications, you're bound to lose interest in the editor. The
General Mode : Enter the "vim file name" in the Linux terminal to enter the general mode , but cannot enter the text.edit Mode : Press I in general mode will enter the editing mode , you can write the program, press ESC to return to the general
Normal mode (press ESC or ctrl+[) the lower-left corner displays the file name or is emptyInsert mode (press the I key to enter) the lower left corner shows--insert--Visual mode (Press v key to enter) the lower left corner shows--visual--I inserted
Paste a self-used vim configuration file, the personal feeling that these configurations are not bloated, for the operation is basically enough.Set Shortmess=atiSyntax enableSyntax on "SET syntax highlightingSet NuSet rulerSet autoindent "Setting
Install this plugin because some of the wrong operation cost a lot of time, the process is recorded, later need to install to avoid wasting time.Some preparatory work:1. First install VIM:1 sudo Install VIM-GTK2. After the installation is complete,
Go from blog http://qianjigui.javaeye.com/blog/368449Needless to say, in the vim of the expression has been very widely used. In the most commonly used/and: s commands, regular expressions are essential. The following is a description of some of the
# #一, substitution and revocation of characters (undo action)
# # #1. Replace and revoke (undo) commands
Both the Replace and undo commands are for normal mode
Vim is the most famous text/code Editor on Linux , and the GVim of the Vi editor of the early years, while the Windows edition of the system is the version. Its biggest feature is the full use of keyboard commands to edit, away from the mouse
Here is the solution I configured when I encountered a problem unable to modify the configuration file1/usr/share/vim/vimrc2 This is a system-type VIMRC configuration file, in order to ensure the normal use of vim, the general does not modify this
In the VI editor we use no color matching is not very good, we install a vim Rich Text editor convenient for our text editing.[email protected] ~]# Yum install vim-yLoaded plugins: Fastestmirror, prioritiesBase | 3.6 KB 00:00:00Extras | 3.4 KB 00:00:
Linux starter Vim Quick useBrief introduction:Text editor, word processor, similar to nano word Fuquan editor, and SED for line editorSource:Vi:visual InterfaceVim:vi imprpbed (Enhanced version of VI)Full screen editor, Mode editorVim mode:1. Edit
Linux environment Editor has VI, Vim, gedit, after entering these editors, display the current line number
Manual display: Input in vim or vI command line mode : Set nu
Cancel display: Input in vim command line mode : Set Nonu
1 "The following is a partial configuration of my vim2 au FileType php call addphpfunclist ()3 functionaddphpfunclist ()4Set Dictionary-=~/.vim/php_funclist.txt dictionary+=~/.vim/Php_funclist.txt5Set Complete-=k complete+=k6 endfunction7 "That's
A long way to practice ... As a vs heavy-dependent patient, plus visual assist X this lazy necessary divine plugin, transfer to Vim under the door, really all kinds of pain ...Vim with the use of a mouse to point to the impulse, there are wood
Take a look at Martin Brochhaus's video, today I also tried to configure the Vim Python IDEYou only need to https://github.com/wyj1239630590/vim-as-a-python-ide in the future, and then copy the. VIMRC to the home directory, install the Package
from:http://blog.csdn.net/u013088062/article/details/50144201from:http://blog.csdn.net/u013088062/article/details/50148219There are already plansCustom ScenariosConfiguring the VIM scheme
There are already plans1. ThemeThere is no doubt that
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