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
1 plugin directory ~/.vim/bundle/ not available for self-creation2 Installing Vundle$ git clone https://github.com/vundlevim/vundle.vim.git ~/.vim/bundle/vundle.vim 3 Configuring PluginsVI ~/.VIMRCAdd to: set nocompatible "Be improved,
1. :%s/\r\+$//g Delete the ^m characters in the text.2. :%s/\s\+$//g Some VIM IDE will see the text in the red block, usually the end of the line of extra space caused by, then use it to clear.3. :%s/\ height=\\ "\d\{3}\\"//g Delete the height=\ "3
First, prefaceBefore learning vim, but for a variety of reasons, did not continue to study, in fact, perseverance is not enough, not able to persist, so now vim will only be simple operation, really ashamed. Now pick up the learning vim and record
We all know that when we copy and paste between a file, Vim provides us with a lot of methods, three modes have a method to achieve the characters, sentences, paragraphs between the copy and paste. At that time, ifWe want to copy and paste between
Vim can be regarded as the most famous editor on Linux system, and it is the enhanced version of VI editor, its biggest feature is the full use of the keyboard to operate. Getting out of the mouse operation makes it difficult to get started, but the
1. Learn to touch typing blind play is the foundation of everything the focus is on hand-eye coordination if blind play cannot be achieved. All high-efficiency vim operations will be impossibleUse of 2.vim2.1.HJKL Mobile Recommended Practice snake
Current Buffer Valid when you define a buffer-local mapping for "," and the global mapping may have a "," prefix, then vim waits for the next character's output to determine which mapping to use, and uses Will avoid this situation, directly using
When we end a day of work, maybe just half of the work is done, for example, we are using VIM to modify an Android problem, we have fixed the problem, we are involved in several classes, if we just shut down the vim, then we have to reopen the next
Vim open file, enter in command line mode: Set list--Displays the characters of the end of the file line$ represents the LF^i represents a tab: Set FF-View file Format,vim can recognize the file format as Dos,unix,mac: Set Ff=dos converts the file
Working in a Linux environment is often inseparable from the Vim editor, regardless of which version of the Os,vim style is installed is rarely configured to your custom, because the default configuration does not have any plugins and settings. As
. vimrc file
We have already learned that the configuration file for vim is VIMRC file and that the VIMRC file is divided into system VIMRC file and user vimrc file . Under normal circumstances, we do not make the system VIMRC file
Basic usage of VIM editorVim is the upgrade version of VI, the function is very powerful, is currently the mainstream Linux text editor. Its configuration file is saved in/ETC/VIMRCThe VIM editor has three modes of operation: command-line mode,
Want your vim to have a c/cpp code complement function? It is recommended that you use the Youcompleteme tool. The configuration is a little cumbersome, but under my step-by-step instructions, you will be able to do very well.First mention a few key
1. Download Nginx.vimDownload page: http://www.vim.org/scripts/script.php?script_id=1886wget Http://www.vim.org/scripts/download_script.php?src_id=14376-O Nginx.vim2, Installation Nginx.vimPlace the Nginx.vim in the ~/.vim/syntax/directory,3,
Sometimes the default Vim environment is not suitable for your requirements, and we can adapt to our needs by modifying Vim settings such as fonts, colors, auto-indentation, and so on.The usual setup parameters are as follows:: Set Nu: Set Nonu sets
Vim is a strong to no friends of the text editor, often using Vim editor friends must have a deep experience. Here are some simple vim configurations.(1) Vim ~/.VIMRCEdit the following to save the exit.(Note: Osx/ubuntu/centos/redhat test
VI and VIMThe VI Editor is the standard editor for all UNIX and Linux systems, and he is the equivalent of a notepad in the Windows system, which is no less powerful than any of the latest text editors. He is a tool we cannot use without a Linux
Create the VIMRC file in the user's home directory, and then add the following:function Headerpython ()Call Setline (1, "#!/usr/bin/env python")Call Append (1, "#-*-Coding:utf8-*-")Normal GNormal ONormal OEndfAutocmd bufnewfile *.py Call
Vim usage SummaryVim is a well-known powerful and highly customizable Text Editor similar to Vi. It improves and adds many features based on Vi. VIM is pure free software in three general modes: vim opens a file and enters the general mode. Move the
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