VIM Installation:
The code is as follows
Copy Code
# yum-y Install vim*
Vim usage
The choice of text, for the editor, is a very basic thing, is often used, summed up as follows:
V starts at the current
First, the preparatory work before installing VIM7.4
1
The code is as follows
Copy Code
Apt-get Update
Problem encountered:W: The key for the following ID does not have a public key available:8b48ad6246925553
Before you start writing plug-ins, you need to verify that Vim supports Ruby by using the following command to identify:
$ VIM--version | grep +ruby
If the output is empty, your current vim does not support Ruby, you need to recompile,
Objective
Vim is Linux under quite a piece of text processing artifact Also, is VI Editor upgrade version, the full name of the VI improved. and VI is the abbreviation of visual interface, they are processing ASCII character data, skilled use of
FRM: http://www.linuxidc.com/Linux/2013-05/84031p2.htm
Learn about the three basic modes of VIMWhen we finish installing an editor, we will definitely open it and then enter something in it, but after you open vim, you want to enter something
"2017-02-04"First put a few better information, look at this information is good:1.Vim Primer Foundation Http://www.jianshu.com/p/bcbe916f97e12.vim Configuration http://blog.csdn.net/g_brightboy/article/details/142291393. The concise Vim practice
These are the most commonly used commands of VIM! Remember the "Mr.robot" that will improve efficiency----------------------------------------------------The common commands that VIM requires:D G Delete allI currently edito New Line EditGG
Vim mode switchingWhen you turn on VIM as the default command mode, do the following to edit:Input IAfter editing, press the ESC key, enter:, enter the last line mode, enter Wq, save to exit, q! Force exit.Common commands: command-line mode
Original address: http://www.libenfu.com/vim-shortcut key Finishing
As a back-end code farming, the most commonly used is vim , then vim the common shortcut keys, you know how much?Move cursor1. Move left, h right l , Move down, move j upk2.
When we use VI or VIM, if we want to display line numbers, we may do this: switch to command mode, then enter set Nu, then press ENTER to display, and we are writing programs, sometimes we would like to press ENTER, the cursor is not always at the
Because the daily work often uses the corresponding tool, grasps the corresponding shortcut key will greatly enhance the work efficiency, the collation record, facilitates the inquiry;##### pycharm daily shortcut keys- cmd + b jump to the
Vim mode:Edit modeInput modeLast-line modeMode conversionEdit-InputI: Switch to input mode before the current cursor characterA: After the current cursor is in the same character, switch to input modeo: Insert a row below the current cursor line,
Moving the cursor in VIM is a big difference from other editors, but once you learn it, you'll quickly move through the text.Copy and pasteDD Deletes the cursor in the rowDW Delete one word (word)X Delete Current characterX Delete
Vim is really powerful.M Direct start vimVim filename opens vim and creates a file named filenameFile commandsOpen a single fileVim fileOpen multiple files at the same timeVim file1 file2 file3 ...Open a new file in the Vim window: Open FileOpen a
Excerpt from: http://blog.csdn.net/niushuai666/article/details/7275406I. Installation of VIMsudo apt-get install vimSecond, useTwo modes of vim: Normal, Insert
After starting vim, Vim is in Normal mode.
Let's go into Insert mode, press
Http://www.linuxidc.com/Linux/2012-12/75684.htmVundle (Vim bundle) is a vim plug-in manager.Its github address is: Https://github.com/gmarik/vundleHow to use Vundle (personal use environment for Ubuntu 12.10)1. Download Vundle from GitHub to Local:$
for beginners who are just starting out with the Vi/vim text editor, how do I exit the Vi/vim text editor without saving changes? When you use the Linux vi/vim text editor to edit a configuration file under Linux, when you are finished, you can save
Originally did not want to write, then think about the benefit of the people who need it, because really admire a key to the author. I know a lot of people can configure their own vim plug-in, but it is estimated that it will play anything for a
In command line mode:% The current complete file name%: H indicates the header of the file name, that is, the file directory. For example, ../path/test. c will be ../path%: The end of t file name. For example, ../path/test. c will be test. c%: R
Edit the. vimrc fileVim ~ /. Add the following code to vimrc: The code is as follows:Copy code Function CompleteSymbol ()Inoremap () IInoremap [[] IInoremap {{} IInoremap <> IInoremap "" IInoremap ''' I Endfunction is called below 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