IntroductionA year ago also learned vim for some time, but after all, still did not cross the threshold of beginners. I found myself in a lot of situations are like this, not without serious study, but in the end did not stick down. Sometimes, I
The command vim can start the VIM editor normally we use Vim in the form of a vim target file path if the target file exists, use VIM to open the file if the destination file does not exist, then create and open the file. Vim has three modes: 1,
The configuration file for vim in red Hat Linux is stored in the/directory, and the configuration file named VIMRC.G User-defined configuration can be placed in the. vimrc file of the root directory.1. Display line numbersManual display: Input in
Because I use the VIM editor a bit old-fashioned, so on Google search, whether it can make a nice little, convenient, this does not-we have to provide a good way, I follow his approach to my vim decoration is very beautiful, mainly by it, for us
Vim tips for useInstall, find packages[email protected] ~]# which VI/bin/vi[Email protected] ~]# Rpm-qf/bin/viVim-minimal-7.2.411-1.6.el6.x86_64[Email protected] ~]# RPM-QF ' which VI 'Vim-minimal-7.2.411-1.6.el6.x86_64[Email protected] ~]# RPM-QF '
Notes on playing vim-(i) Brief introduction On this blue planet, there are legends of two great artifacts: Emacs is said to be the editor of God, and Vim is the god of the editor. Some people bravely picked up vim or Emacs, but found that the
Originally in vim paste from other places copied from the text, always use SHIFT + inert, then think, can not directly like P paste, do not have to enter the insertion mode and then paste. Later read the "Vim practical skills" on the introduction of
Light:http://www.vimninjas.com/2012/09/14/10-light-colors/Dark:http://www.vimninjas.com/2012/08/26/10-vim-color-schemes-you-need-to-own/Introduction to Color scheme
1. Install Vim#vim +n filename # #n是数字, you can navigate to the nth row of the file2. Shortcut keysIn the general mode:J down K up H left L rightThe number 0 or shift+6 moves to the beginning of the bankShift+4 move to the end of bank lineGG move to
From "Bird Brother's private cuisine", the third, people's post and telecommunications publishing houseSimple use of vim:Execution method:vim filename Three modes : General mode, edit mode, command line modeGeneral mode----> Edit modeI: Before the
I posted my use of vim configuration and plug-in configuration, these things can only be a script stack, no discussion of efficient code reading development.Let's write the frequently used commands, and start with the Configure F-Series shortcut
I posted my use of vim configuration and plug-in configuration, these things can only be a script stack, no discussion of efficient code reading development.Let's write the frequently used commands, and start with the Configure F-Series shortcut
this morning, To see the Great God programming with Vim, The screen is intuitive, very fast, the operation only needs to be implemented with the command symbol. So it can be inferred that the command of Vim is complex, then the learning process
in the Linux system, we often use the VI or VIM command to manipulate the text, sometimes, our script file error, will throw a line number of exceptions, and then we follow the prompts, reopen, our source to view, and this time, If your vim is not
Vim Wangyunpeng.txt Create a wangyunpeng.txt fileEnter "I" into insert modeDisplay line number, you need to enter ": Se nu" in command modeCp/etc/services/tmp/services Copy the Services file under the ETC directory to the TMP directory name is also
Reference:
http://blog.csdn.net/love__coder/article/details/6739670
http://blog.csdn.net/love__coder/article/details/7217377
Intercept to generate a new file or append to an existing file::up to aw!./new.txt #将第21 ~42
Enter VIMIf you want to open or create a new file/home/eagle/main.cpp, enter the statement:
Vim/home/eagle/main.cpp
Move cursor
Key
function
0/home
Move to the beginning of the line
Work needs to use VIM for a long time, has been stupid with the mouse point, a good way, today on the Internet to write the basic use of VIM command, for later query use:Switch to Input mode:
Key
Function
I
One.Moving:H,j,k,l: Left, bottom, top, right.W: The first word of the next word. W: Next word (without punctuation).E: The ending of the next word. E: Punctuation is not included.B: The word head of the previous word. B: Punctuation is not included.<
Vim (multiline comment and delete multiline comment ).--- All in ESC mode:1. Comments in multiple lines in vim.(1) press Ctrl + v to enter the column mode;(2) select to end at the specified position at the beginning of the line to be commented. (Use
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