Installation and basic usage
1. Log in to Ubuntu with the root account, enter vim in the command line, and get the following prompts if not installed:
The program "Vim" is already included in the following packages:
* VIM
* Vim-gnome
* Vim-tiny
First install Git on windows, do it yourself, thank you.
Set the Curl Command tool.
Curl is already in the process of installing git, and then needs a little configuration to make it available at the command prompt.Locate Git's installation
Copy the code to the user directory to create a new file for. VIMRCSave to take effect; If you want all users to take effect please modify/ETC/VIMRC (CP is recommended first)
"======================================================================
Commands entered in edit mode or Visual mode are noted separately.1. Find/xxx (? xxx) means searching the entire document for a string matching xxx,/means looking down,? SaidLook up. where xxx can be a regular expression, about the formal type is
Original: Http://www.oschina.net/news/43167/130-essential-vim-commandsSince 1970, VI and Vim have become one of the programmers ' favorite text editors. 5 years ago, I wrote a question called "100 vim commands that every programmer should know."
Since 1970, VI and Vim have become one of the programmers ' favorite text editors. It was copied from other bloggers and it was very practical.Basis
: E filename
Open filename for edition
: W
Save file
To open multiple files: 1.vim has not started yet: Enter in terminal Vim file1 file2 ... filen can open all the files you want to open 2.vim has started Input : Open File A file can be opened again, and the contents of the file will be displayed in
Seven efficient text editing habitsIf you spend a lot of time typing in plain text, writing programs, or HTML, you can save most of your time by using a good editor effectively. This article will provide guidance and tips for you to do these things
Recently intends to map caps lock into a button, it is more cool to press, now there is a small problem, how to quickly enter capital letters,Use this keyboard mapping to get it done.Inoremap guiwaYou have a chance to test this combination,
1. Mode switchVim mode $ VI filename goes into normal mode, which is the command mode used to perform most common editing commands and cannot be enteredKnock I into insert mode, this is normal editing mode, press ESC to return to normal modeEnter in
1, Vim is the ancient artifact of Linux programmer programmingVim is the most famous text/code Editor on the Linux system, and it is also an enhanced version of the VI editor of the early years, known as the best classic ancient artifact in the text/
---restore content starts---Write the code in Xshell, if you need to edit the code, you can enter vim+ xxx.py, enter the VIM editing interfaceThe xxx.py here represents a python storage file with a. py suffix.1. Insert character input I can type or
Download and configureThe official address of the Nerdtree plugin is as follows, and you can get the latest version from hereHttps://github.com/scrooloose/nerdtree Download Zip installation packageOr use the following official website source file
http://www.tinylab.org/linux-terminal-and-paste-copy-under-vim/Under the GUI interface, we are free to copy and paste. But in the character interface, we have to use the mouse to select, and then click on the right, select Copy, and then go
Windows 10 Environment installation VIM code completion plugin YoucompletemeIt's been a week. Windows installation VIM code complete plug-in Youcompleteme, today at home toss a day finally fix. The key issue is the Python environment: you must
Vim is a powerful editor on the Linux platform. It is an enhanced version of the VI editor in the early years. This gvim is for Windows and has a standard GUI for Windows. Therefore, it is called G (graphical) vim. We can understand gvim as a
See:
Http://blog.csdn.net/swust_long/article/details/6990033
Http://www.ibm.com/developerworks/cn/linux/l-vimdiff/
The simplest command to open a new window is: Split
Close Window: close, or: Quit or ZZ. However, close can avoid accidental exit of
0 Introduction
Understanding the vim startup process is very important to enhance the confidence in using vim. All the information in this article comes from the reference manual provided by vim and the actual operation practices of the author. The
[Vim] vim use notes -- split screen operation, vim --
We often need to open multiple files, operate multiple files in different windows, and split the screen is very useful.
1 command mode: new, create a file and split the screen, shortcut key,
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