@ three states:Command: Any input will be used as an edit command and will not appear on the screen, and any input will immediately cause a reaction.Insert: Any input data as for the edit register, press ESC to jump back to common mode.Escape: With '
1. Operation = operator + actionAAA BBBFor example, D is the delete command, and B moves to the beginning of the string closest to the cursorWhen we execute the DB, we remove the characters from the cursor (excluding the cursor position) to the
Direct text, the second part of efficient editing.One, command line editing1. Command line Input: Automatically jump to command line after input, accept command input? Automatically jump to command line after input/input automatically jumps to the
Making vim an IDE was an exiting thing. Conside following configuration files:
. VIMRC: ~/.VIMRC
Winmanager.vim: ~/.vim/bundle/winmanager/plugin/winmanager.vim
. VIMRCMy. VIMRC is as follows:Set nocompatible ' be improved,
The default heavy blue is too difficult to identify, I changed into a cyan cyan, the green is similar to, the feeling is too ugly.Just use the previously learned output redirection.echo "Highlight Comment Ctermfg=cyan" >>/ETC/VIMRCYou can
Vim configuration file storage path: ~/.VIMRCThe file that starts with the dot (.), which is not displayed by default, requires the LS-A option. syntax onset nobackupset noswapfileset hlsearchset numberset rulerset expandtabset TabStop =4 set
Before the system to learn vim, the first to find some tutorials on the internet to understand, because first we have to use VIM, and then in the system of learning process constantly enrich their understanding of vim.--------------------------------
Original address: http://blog.sina.com.cn/s/blog_878940b3010156ku.htmlIn terminal input: sudo VIM/ETC/VIM/VIMRC open the configuration file.Edit command:Set ShowCmd "Show (partial) command in the status line.Set Showmatch "Show matching brackets.Set
Vim is not a long time to use, but it is now inseparable from the familiar vim editing mode. Vim's learning curve is very steep, at the beginning of learning, the face of a lot of operational commands to remember, often deterred.In fact, just
(1) Press ESC, then 123GG jumps to 123 lines (2) Input: line number jump to the line you want! ###############################Add, delete comments:Note: Ctrl + V enters column-editing mode, moves the cursor down or up, marks the beginning of the
Vim is the enhanced version of VI, one of the important philosophical ideas of Linux is all files, and the majority of configuration files on the system are saved with a text file, so mastering a powerful, easy-to-use text editor for Linux system
Recovery is simple in vim, but it's hard to recover to a specific time period.In my experience, sometimes using recovery is better than deleting the rewriteHere we talk about the use of restore, Undo, and repeat commandsu undo Last
Vim a.txt Open a file a.txtEnter some text into vimEnter vim or the command state must press I "" I a A or isert to enter the editing stateSave Exit Esc Enter command status input : EQ Save exitDo not save forced exit: q!Set Nu sets line number/xx
In this section we take a look at the delete, delete command is relatively simple, but to make the deletion more efficientYou need to match the various move commands we've talked about in the first section.Character deletionx Delete the
Well, today is the second day of the re-learning of vim, and it has to be said that the goods are plentiful.First to encourage yourself:Survival (Current state)It feels good.Feel better, stronger, fasterEat with VIM super abilityVimtutor practice to
This article describes the basic use of VI (VIM), but for the average user is basically enough! I/vim the difference is simple, they are multi-mode editor, the difference is that Vim is the upgrade version of VI, it is not only compatible with all
1, Minbufexplorer2, CtagsCtags tool is used to traverse the source code files generated tags files, these tags files can be used by the editor or other tools to quickly find the location of the source code symbols (Tag/symbol), such as variable name,
Can remove ^m,For example:Under the Terminal Knock Command:Dos2unix A.Cswitch directly to UNIX format, so you can remove ^mCopyright belongs to the author.Commercial reprint please contact the author for authorization, non-commercial reprint please
Vim default startup settings sometimes not very good, want to change, but unlike Windows other software, the interface is set to take effect, here need to manually set up the file, then set it up quickly!Modify the file to the VIM installation
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