Mastering the common commands of the Vim editor can greatly improve the efficiency of our text editing. Basic Operations
When we first contacted the Vim editor, we learned some of the following things:
Just enter the Vim editor, we are in Normal
Let GUI all play eggs! The mouse is your enemy! Only the keyboard is your only friend! What would happen if Vim and Tmux were combined? You will have the perfect programming environment! Here are some of the secrets I've treasured over the years,
To open multiple files:1.vim has not started yet:Enter in terminalVim file1 file2 ... filen can open all the files you want to open2.vim has startedInput: Open FileA file can be opened again, and the contents of the file will be displayed in Vim at
Record several operations commonly used in VIMGetting Started Guide~ vimtutor~1. Vim is case-sensitive 2. VIM Move CursorH Move LeftJ Move DownK Move UpL Move RightIn fact, the use of the arrow keys can also be moved, but familiar with some other
When you deploy a program to Linux in a real-world production environment or when you update a program on Linux, you often have to modify the contents of the. zip package or the configuration file in the. tar.gz package, which can be cumbersome if
When connecting to a Linux server via putty or SECURECRT, using VI to edit *.php or *.c files,The Blue Note is very light, can't see clearly, looks very cost eyeThe effect is as followsI am accustomed to the default color, do not want to modify the
(i) Vim last-line mode
Vim last-line mode: Built-in command-line interface
Address delimitation
Start_pos[,end_pos]
#: A specific # line, for example, 5 or line 5th
.: Indicates when the forward
1. Upgrade VimMy own MacBook Pro system is still 10.11, with its own vim version of 7.3, which we upgraded to the latest version:Using homebrew:Install vim--with-lua--with-override-system-vimThis will download the latest VIM version and replace the
Golang Development Environment Build-vim Chapter
Transferred from: http://tonybai.com/2014/11/07/golang-development-environment-for-vim/
Although Sublimetext3+gosublime+gocode is currently a more popular Golang development environment
Guide
If you write a little bit of code, you'll know how convenient the integrated development environment (IDE) is. Whether it's Java, C, or Python, writing code can be a lot easier when the IDE helps you check syntax, background compilation,
Efficient mobileOutside the Insert modeBasically, you should stay in the insertion mode as little as possible, because Vim is like a "dumb" editor in insert mode . Many novices will always stay in the insert mode because it is easy to use. But the
Ext.: http://blog.chinaunix.net/uid-22548820-id-3477464.html1. Use the VIM comparison mode to open two files:vim-d file1 file2OrVimdiff file1 file22. If you have already opened the file File1, then open another file file2 to compare:: Vert diffsplit
Summary
Objective
Requirements clash with Mac OS X's own vim version
Default Python interpreter problem
Not a Mac comes with Python
Homebrew
1. PrefaceThis article is a record of my own death toss.2.
Vim is the god of the editor under Linux, is the necessary tool to play Linux, the same Emacs is God's editor, two editors are the difference, look at personal preferences, vegetables radish each their own. I prefer vim, using Vim to write bash,perl,
VundleProject hosting is Https://github.com/gmarik/vundle on GitHub.Its features are the use of git to manage plug-ins, update convenience, support search, one-click Update, from then only need a VIMRC walk the world.Add the following in the VIMRC
Vim is known as the god of the editor, the wheel of its function and extensibility is really few editors can compare, but most of the editor has a file browsing function it does not, although some plug-ins can be implemented, but it is not very
Select All (Highlight ): Press ESC, then GGVG or GGVGCopy all: press ESC, then GGYGDelete all: press ESC, then DGAnalytical:GG: is to let the cursor move to the first line, the vim is valid, vi invalidV: is into Visual (visual) modeG: Move the
This chapter will learn about the related functions provided by the VI similar products.All of them are my brothers:There are many kinds of vi editors that can be freely obtained. The VI and VIM editor focuses on the Vim editor, as well as a brief
Turn from: http://www.cnblogs.com/wangkangluo1/archive/2012/04/12/2444952.html keyboard Move (move)Everything is moving from the keyboardK-On UpJ-DownH-LeftL-R RightZ---redraw the screen, the current cursor changes to the first line of the screen
Transferred from: http://www.2cto.com/os/201307/227903.html Vim Use series: Register and copy paste bufferIt is now possible to skillfully use most of Vim's basic commands and functions for Project code development, but during the development of 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