Vim is really bad to get started, feel good annoying.In addition to Linux under the campus Wi-Fi is particularly slow, git clone has been prompted Fatal:unable to access ' Https://github.com/XXXXXXX/XXX. GIT ': GnuTLS recv error ( -54): Error in the
Vim is a powerful editor that I use mostly with her as an edit file, and also has a cow who makes her play the Super IDE. But... It always feels like this is a powerful brain to use, such as my little rookie or just be honest with a dedicated IDE.
1. In edit mode: Ctrl+w undo the last edited content2. In command mode: CTRL+W cursor switch to another window3.vim-on file1 file2 ... The horizontal split screen, n is the number, represents divided into several screens, the command input succeeds,
One, ModeThere are 3 modes of the VI Editor:Command mode、Input Mode、last-line mode。 It is important to master these three models:Command mode: VI starts after the default entry is the command mode, from this mode use the command can switch to the
As an old and enduring editor, Vim has its own strengths. Many people think that Vim's learning curve is too steep, in order to be able to use VIM, have to memorize a large number of commands. If you are new to Vim, just start to face a vast amount
Here is a summary of the usage of the shortcut keys that you encounter with vim in peacetime.
How do I jump to the position of the last or next cursor?Ctrl ++ I #跳转到下一次光标的位置
How to open another file in a vim program?: Open file1 file2 file3
[ESC] Command mode1. J K H L up or down2. x Delete Current character I enter edit mode a current word specifier insert3. Action options for the D motion delete operator operator1. DW is removed from the cursor to the beginning of the next word,
1. Delete all whitespace characters from the beginning of lines in the/etc/grub2.conf file that begin with whitespace[[email protected] ~]# sed-r ' s/^[[:space:]]+//g '/etc/grub2.cfg # # do don't EDIT this file## It's automatically generated by Grub2
Use a lot of vim configuration version, how to say, want to lightweight do not hugad messy function; If you do not care if the response is fast, focus on the function is strong, you can refer to the configuration strategy of the Great God of Vim
Vim under the automatic completion, the best tool is youcompleteme, official documents here http://valloric.github.io/YouCompleteMe/The installation is slightly more complicated and the following records my process.1. Installing VundleVundle is a
Vim is divided into three modes: General mode, edit mode, command mode1. General modeGeneral mode can move cursor, delete, paste copy and other operationsMove Cursor
After a break from source insight, decide to take the time to properly configure and learn the following VIMSo I found the great God's configuration HTTPS://GITHUB.COM/HUMIAOZUZU/DOT-VIMRCAccording to the introduction of the page, the following
VI commandYY the line where the cursor is copiedP Paste behind the cursorDD Delete the line where the cursor is locatedVim-p 1.c 2.c 3.c Open multiple filesJ+t for file switchingWA: Save AllQA: Exit All/+ the string to look up:/printf means to look
Ubuntu 14.04 LTS version of Linux, in fact, is already integrated VIM, in the shell always run the command "VI" can be viewed as "vim-vi improved" information, but through the "vi--version" command to view, Can see that this vim belongs to the small
Linux--vim Common operationsInsert command:
Command
Role
A
Insert the word specifier where the cursor is located
A
Insert at the end of the line where the cursor is
I
Insert
Environment CentOS 6.7 Vim 7.3Installing VundleVundle (Vim bundle) is a vim plug-in manager. It is to integrate GIT operations, the user needs to do is to go to GitHub to find the name of the plugin they want to install, update and uninstall can
1. Temporary modificationin the vi ,set tabstop=4 or Set ts=42. Permanent modificationVI--version Viewing the files to be modifiedif it is vim words, modify ~/.VIMRCif it is VI, modify ~/.EXRCPlus: Set tabstop=4Set nu//Display line numberSet
First, the problem description:Under Windows to install Git-"installed Msys2-" installed and updated vim (7.4), and then found in the use of Vim can not use the BACKSPACE key, press the arrow key will be played ABCD, no language.Second, problem
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